[entWatch] Correct message filter logic.

This commit is contained in:
zaCade 2023-01-22 15:36:20 +01:00
parent 60a863412d
commit 6ec7340382

View File

@ -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);
}
}