zr: fix minor bug

This commit is contained in:
dogan
2024-06-21 06:55:58 +02:00
committed by zaCade
parent 3a1e34e887
commit 074c3e69f4
+1 -1
View File
@@ -301,7 +301,7 @@ stock bool:ZRCountValidClients(&zombiecount = 0, &humancount = 0, bool:alive = t
stock bool:ZRIsClientOnTeam(client, team = -1)
{
// If index is invalid, then stop.
if (!ZRIsClientValid(client))
if (!ZRIsClientValid(client) || !IsClientInGame(client))
{
return false;
}