Code:
public Action:ev_PlayerTeam(Handle:event, const String:name[], bool:dontBroadcast)
{
if (!dontBroadcast && !GetEventBool(event, "silent"))
{
//There is really no need to check the team, if you are blocking all team switch messages.
SetEventBroadcast(event, true);
return Plugin_Changed;
}
return Plugin_Continue;
}
Also, if you must check for teams use defines instead of variables since they dont change.
__________________