AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Freedom remove? (https://forums.alliedmods.net/showthread.php?t=27630)

NewUser 04-25-2006 22:52

Freedom remove?
 
Sort of like freedom. How would you stop someone from using attack2 feature? All I know is IN_ATTACK2, then maybe some sort of prethink? Anyhow, how can I prevent 'attack2' from happening?

ZeonSoldier 04-25-2006 23:57

Quick one would be doing a handle...


Code:
register_clcmd("+attack2","handleAttack2") public handleAttack2(id) {   if( blocked[id] )     return PLUGIN_HANDLED   return PLUGIN_CONTINUE }

I would believe that works, someone correct me if I am mistaken.

Twilight Suzuka 04-26-2006 00:00

It won't work, as those buttons are not sent through commands like that.

ZeonSoldier 04-26-2006 10:19

There is a mirror thread for this... It is discussing the same basic idea, just with +jump.... http://forums.alliedmods.net/showthread.php?t=27642


All times are GMT -4. The time now is 05:03.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.