diff --git a/entWatch4/scripting/entWatch-messages.sp b/entWatch4/scripting/entWatch-messages.sp index dc8efa3..7439f68 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); } }