it removes the bit on the status icon... However it filters to only one team (atleast it should)
PHP Code:
public plugin_cfg()
{
register_message(get_user_msgid("StatusIcon") , "Message_StatusIcon"); //Message for BuyZone
}
public Message_StatusIcon(iMsgId, MSG_DEST, id)
{
if(!get_pcvar_num(g_iToggle))
return PLUGIN_HANDLED;
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))
{
if(get_pcvar_num(g_iTeamMode))
{
if(g_iPlayerTeam[id] == g_MenuTeam)
{
fm_cs_set_user_nobuy(id);
}
}
else
{
fm_cs_set_user_nobuy(id);
}
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE;
}
But for some reason it doesn't only filter T's..
g_iPlayerTeam[id] = CS_TEAM_CT/T
g_MenuTeam = CS_TEAM_CT/T depending on the value of the cvar.
1 = T 2 = CT any other value = Both.
For some reason if g_iTeamMode is 1. Buyzones are blocked for each player on both teams.