Is there a command for unarming the player
a command that unarm the player [B]but they still have all there weapons[/B]
so no strip weapons! :D
[QUOTE=poepel;50803428]Is there a command for unarming the player
a command that unarm the player [B]but they still have all there weapons[/B]
so no strip weapons! :D[/QUOTE]
no there is not.
what you can do is some sort of weapon like Holstered weapon in ttt.
Make sure they have a swep representing nothing, like a "nothing equipped" swep (make it yourself if you have to, just a blank swep I think), or fists if you want that. Then, whenever you want to disarm the player, use the function Player:SelectWeapon(string classname), documented here: [url]https://wiki.garrysmod.com/page/Player/SelectWeapon[/url]
Tell me if this does what you hope to accomplish.
SelectWeapon( "" ) will make them go to NULL
yeah i need an swep that do nothing :D
when i put nothing in it it dont switch! :D
so i need to make a swep :D
[QUOTE=poepel;50805235]yeah i need an swep that do nothing :D
when i put nothing in it it dont switch! :D
so i need to make a swep :D[/QUOTE]
just make a blank swep :D
thanks a lot for the fast help x3
Sorry, you need to Log In to post a reply to this thread.