Originally Posted by farawayf
i dont know why you trying to check m_zombieClass on bots, because you wrote that you want to count all.
would not it be easier to do like this ?
int count = 0;
for (int i = 1; i <= MaxClients; i++)
if (IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i) && IsFakeClient(i) && GetClientTeam(i) == 3) count++;
If use GetClientTeam(i) == 3
. Mobs will be considered this way.?