How to delete buyzone?
This code is not work:
PHP Code:
public Forward__Spawn_Pre(iEntity)
{
if(!pev_valid(iEntity))
return FMRES_IGNORED;
new szClassName[32];
pev(iEntity, pev_classname, szClassName, charsmax(szClassName))
if(!equal(szClassName, "func_buyzone") && !equal(szClassName, "info_buyzone"))
return FMRES_IGNORED;
engfunc(EngFunc_RemoveEntity, iEntity)
return FMRES_SUPERCEDE;
}
This code is work:
PHP Code:
public Message__StatusIcon(MsgID, MsgDest, iPlayer)
{
static szIcon[5];
get_msg_arg_string(2, szIcon, charsmax(szIcon))
if(szIcon[0] != 'b' || szIcon[2] != 'y' || szIcon[3] != 'z')
return PLUGIN_CONTINUE;
set_pdata_int(iPlayer, 235, get_pdata_int(iPlayer, 235) & ~(1<<0))
return PLUGIN_HANDLED;
}
But I want remove buyzone to not use message status icon.