Restricting weapons
How do I restrict only one player from picking up weapons if a condition is met?
Basically what I'm trying to do is restrict weapon pickup to the person that buys an item from a shop plugin I have. Buyzones are already blocked, I just need the player to not be able to pick up weapons. |
Re: Restricting weapons
Code:
http://forums.alliedmods.net/showthr...ghlight=common |
Re: Restricting weapons
Other things can touch weapons besides a player. With register_touch you can hook only a weapon\player touch.
You can hook only one or the other of these or both: weaponbox = dropped weapons armoury_entity = weapons that sit on ground at map start (fy_iceworld, fy_snow etc). PHP Code:
|
Re: Restricting weapons
If you use Hamsandwich's way (both are fine), check player range :
PHP Code:
|
| All times are GMT -4. The time now is 14:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.