after you change the value you have to restart the round...
You have it on round start the only time you actully have the plugin check if its on or off.
Also remove the buy zones dont block buy commands just remove it completely that way they know that they cannot buy
PHP Code:
#define fm_cs_set_user_nobuy(%1) set_pdata_int(%1, 235, get_pdata_int(%1, 235) & ~(1<<0) )
public plugin_cfg()
{
register_message(get_user_msgid("StatusIcon") , "Message_StatusIcon");
}
public Message_StatusIcon(iMsgId, MSG_DEST, id)
{
static szIcon[5];
get_msg_arg_string(2, szIcon, 4);
if( szIcon[0] == 'b' && szIcon[2] == 'y' && szIcon[3] == 'z' )
{
if( get_msg_arg_int(1) )
{
fm_cs_set_user_nobuy(id);
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE
}