From 6ec7340382a8cf39ade2454ba7b5edf71b94bd89 Mon Sep 17 00:00:00 2001 From: zaCade Date: Sun, 22 Jan 2023 15:36:20 +0100 Subject: [PATCH] [entWatch] Correct message filter logic. --- entWatch4/scripting/entWatch-messages.sp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entWatch4/scripting/entWatch-messages.sp b/entWatch4/scripting/entWatch-messages.sp index dc8efa3c..7439f682 100644 --- a/entWatch4/scripting/entWatch-messages.sp +++ b/entWatch4/scripting/entWatch-messages.sp @@ -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); } }