If you are going to start blocking buttons its best to use CmdStart:
Code:
register_forward(FM_CmdStart, "CmdStart")
public CmdStart(id, uc_handle, random_seed)
{
if(!is_user_alive(id)) return FMRES_IGNORED
static buttons
buttons = get_uc(uc_handle, UC_Buttons)
if(buttons & IN_USE) buttons &= ~IN_USE
set_uc(uc_handle, UC_Buttons, buttons)
return FMRES_IGNORED
}
Reason above method is more efficient is that it handles when buttons etc do something whereas using PreThink it doesn't.
__________________