Block the stwich weapon of players.
I need the code for block the players of stwich weapons for 10s.
|
Re: Block the stwich weapon of players.
Not possible, afaik. You might try hooking it in Ham and blocking it using this:
PHP Code:
What you can do, though, is simply switch the player's weapon back to their old weapon or drop the new one. |
Re: Block the stwich weapon of players.
I'm Trying to use this code:
PHP Code:
Any idea? |
Re: Block the stwich weapon of players.
add to plugin init:
PHP Code:
If you want to see some example of using this event to set maxspeed then check this: http://forums.alliedmods.net/showpos...73&postcount=7 |
Re: Block the stwich weapon of players.
show me how i add this code to make the plr slow , because when he switch the weapon the slowtime is finish. THX
|
Re: Block the stwich weapon of players.
Just block all weapon ("weapon_m4a1", etc), slot ("slot1", etc), inventory ("inv_next", etc) cmds.
|
Re: Block the stwich weapon of players.
Don't try to block weapons, just learn how to use CurWeapon event to make player maxspeed constant. I already gave you link with an example in my previous post. There are also a lot of other examples, just use Search...
If you are not able to understand how to use CurWeapon then post your plugin and someone will edit it. |
Re: Block the stwich weapon of players.
It's a BCM 4 of HNS if i strip the weapons, the game is over...
I need a mod to strip the weapons and give the same weapons with the same bullets.Or block the switching of weapons, understand? |
| All times are GMT -4. The time now is 15:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.