P.S. if I'm not mistaken, you seem to be Polish; if you want, ask me questions in Polish instead of English
Incorrect. That would attempt to fire an sm_receive_shotgun input on the player entity, which does not exist.Yes, have the trigger do OnStartTouch => !activator => sm_receive_shotgun. This tells the trigger to, when touched, give a shotgun to the player/whatever activated it.
@Frozen
Seba nauczył się języka polskiego, kiedy dowiedział się Google przetłumaczone na język polski.
(words may not be entirely accurate, but i'm sure you get my drift )
Incorrect. That would attempt to fire an sm_receive_shotgun input on the player entity, which does not exist.
You need to use a point_clientcommand entity, and have a trigger send the Command input to it with a parameter of sm_receive_shotgun. However, some things cannot be executed on a client like this, so it may or may not work. Though being a sourcemod command I would guess that it would be allowed.