Raised This Month: $ Target: $400
 0% 

get use command.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-24-2009 , 12:30   Re: get use command.
Reply With Quote #6

Code:
#include <amxmodx> #include <fakemeta>   public plugin_init()         register_forward(FM_CmdStart, "HookReload");   public HookReload(ClientID, UC_Handle) {         if (!is_user_alive(ClientID))                 return;           static Button;         Button = get_uc(UC_Handle, Buttons);           if (Button & IN_RELOAD)         {                 // Client used +reload command                   // If you want to block it, use this                 Button &= ~IN_RELOAD;         }           // This will block it         set_uc(UC_Handle, UC_Buttons, Button);           return FMRES_SUPERCEDE; }
__________________
hleV is offline
 



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 09:04.


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