Raised This Month: $32 Target: $400
 8% 

[Solved] Question about blocking


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Martin1
BANNED
Join Date: May 2006
Old 03-26-2007 , 19:50   [Solved] Question about blocking
Reply With Quote #1

How would i block in_forward, backward, right, left, attack and attack2 using the cmdstart blocking?
Martin

Last edited by Martin1; 03-26-2007 at 21:27.
Martin1 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-26-2007 , 20:33   Re: Question about blocking
Reply With Quote #2

Code:
#include <amxmodx> #include <fakemeta> #define BAD_BUTTONS (IN_FORWARD|IN_BACK|IN_MOVELEFT|IN_MOVERIGHT|IN_ATTACK|IN_ATTACK2) public plugin_init() {     register_forward(FM_CmdStart,"fw_cmdstart",1); } public fw_cmdstart(player,uc_handle,random_seed) {     new buttons = get_uc(uc_handle,UC_Buttons);     set_uc(uc_handle,UC_Buttons,buttons & ~(BAD_BUTTONS));     return FMRES_IGNORED; }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
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 10:06.


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