diff --git a/_entWatch4/scripting/entWatch-interface.sp b/_entWatch4/scripting/entWatch-interface.sp index e7c9753b..8fa39c32 100644 --- a/_entWatch4/scripting/entWatch-interface.sp +++ b/_entWatch4/scripting/entWatch-interface.sp @@ -126,7 +126,14 @@ public Action OnDisplayHUD(Handle timer) int iTeamLine; if ((iTeamLine = GetClientTeam(client) - 2) < 0) - continue; + { + int spectatingClient; + if ((spectatingClient = Client_GetObserverTarget(client)) < 0) + continue; + + if ((iTeamLine = GetClientTeam(spectatingClient) - 2) < 0) + continue; + } if (sTeamLines[iTeamLine][0]) {