Hello everybody,
I want to block the possibility to buy weapons for specific players using this code by now:
PHP Code:
public Message_StatusIcon(iMsgId, iMsgDest, id)
{
if(g_bIsZombie[id])
{
static szIcon[8];
get_msg_arg_string(2, szIcon, charsmax(szIcon));
if( equal(szIcon, "buyzone") )
{
if( get_msg_arg_int(1) )
{
set_pdata_int(id, 235, get_pdata_int(id, 235) & ~(1<<0));
return PLUGIN_HANDLED;
}
}
}
return PLUGIN_CONTINUE;
}
This works fine, but when a Player gets infected while he is in the buyzone, he can still open the buy menu.
Any solutions for that?
__________________