Raised This Month: $ Target: $400
 0% 

Freedom remove?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NewUser
Member
Join Date: Mar 2006
Location: over there
Old 04-25-2006 , 22:52   Freedom remove?
Reply With Quote #1

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?
__________________
LEWL.
NewUser is offline
ZeonSoldier
Member
Join Date: Jan 2006
Old 04-25-2006 , 23:57  
Reply With Quote #2

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.
ZeonSoldier is offline
Send a message via MSN to ZeonSoldier
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-26-2006 , 00:00  
Reply With Quote #3

It won't work, as those buttons are not sent through commands like that.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
ZeonSoldier
Member
Join Date: Jan 2006
Old 04-26-2006 , 10:19  
Reply With Quote #4

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
ZeonSoldier is offline
Send a message via MSN to ZeonSoldier
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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