block +attack, not only on server
i want to block people from using +attack (they cant fire), it is working (almost), i use this:
Code:
when i remove entity_set... does the effect of use go away? any1 know how to fix it? is there a way to send the player a info that he cant fire, like as he is reloading? also is it possible to block the sound when fired a weapon or using something? |
To block the attack without pressing use, use the method described in http://forums.alliedmods.net/showthread.php?t=5442:
Code:
|
I think there is a way to stop the animation. What you should do is hook +attack1. Then when he goes to use it block it and set the weapon animation to its idle sequence. For instance I believe the sequence for M4A1 is 7, you should use then entinfo plugin to get which animation is the idle animation.
|
thx pm
one more thing is it possible to unarm a player, if u remove/switch guns player still has knife, but i want so it switches him so have no weapon (eg ns in the readyroom), i think that should be possible, or not? this way there would be no decals no sound no animation cause he has no weapon. |
vortox u meant +attack1 or +attack? if +attack, u cant hook it
does notbody know how do disarm a player? |
Quote:
Anyways. Whatever button your trying to block, you can still stop the animation with Code:
Just set them to whatever sequence is "idle" for whatever your trying to stop the animation of. |
He will still see the fire sequence for a couple of miliseconds (ping)..
Disarming player: I don't know, but I assume there will be a plugin that does it (and somehow I think CSDM does something like that too but maybe I'm wrong) |
Correct me if I'm wrong but isn't this what your looking for? :arrow: http://www.amxmodx.org/funcwiki.php?go=func&id=577
|
hell yes, thx twistedeuphoria, thats exactly what i need
|
| All times are GMT -4. The time now is 17:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.