Make all players drop all weapons except knife
How can i do this?
|
Re: Make all players drop all weapons except knife
loop through all players and then strip_user_weapons();
|
Re: Make all players drop all weapons except knife
And then give_item(id, "weapon_knife")
|
Re: Make all players drop all weapons except knife
That's stripping weapons, not dropping.
|
Re: Make all players drop all weapons except knife
True.. maybe client_cmd(id, slot1;+attack;-attack;drop;slot2;+attack;-attack;drop)
That won't work if there's a multi-weapon plugin (or some other way of getting more than 1 weapon each slot). And slot5 for bomb and grenades can't be dropped. In any case, there isn't much point to dropping weapons only to have them picked up a second later. If you only want the player to be holding a knife, stripping is better. |
Re: Make all players drop all weapons except knife
You can take code from here : http://forums.alliedmods.net/showthread.php?p=761924
If you don't care about bpammo, here are 2 other simpler ways : PHP Code:
|
| All times are GMT -4. The time now is 02:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.