Raised This Month: $ Target: $400
 0% 

+use triggering action. (HOW?)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-10-2009 , 15:50   Re: +use triggering action. (HOW?)
Reply With Quote #9

This is the best way to detect button usage:
Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_forward(FM_CmdStart, "FwdCmdStart"); } public FwdCmdStart(client, uc_handle, seed) {     new button = get_uc(uc_handle, UC_Buttons);         // how to block a button:     if( button & IN_USE )     {         button &= ~IN_USE;         set_uc(uc_handle, UC_Buttons, button);                 return FMRES_SUPERCEDE;     }         return FMRES_IGNORED; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 08:54.


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