[entWatch] Correct message filter logic.
This commit is contained in:
parent
60a863412d
commit
6ec7340382
@ -193,7 +193,8 @@ stock void CPrintToTeamAndAdmins(int team, const char[] format, any ...)
|
||||
if(!IsClientInGame(client))
|
||||
continue;
|
||||
|
||||
if(team <= CS_TEAM_SPECTATOR || team == GetClientTeam(client) || CheckCommandAccess(client, "", ADMFLAG_GENERIC))
|
||||
int clientteam = GetClientTeam(client);
|
||||
if(clientteam <= CS_TEAM_SPECTATOR || clientteam == team || CheckCommandAccess(client, "", ADMFLAG_GENERIC))
|
||||
CPrintToChat(client, "%s", message);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user