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;
}
__________________