Hi, I'm trying to count the number of live mobs. But I do not like it. Since Mobs does not have m_zombieClass.
PHP Code:
int IsPanicMobsAlive()
{
int count = 0;
for (int i = 1; i <= MaxClients; i++)
if (IsClientConnected(i) && IsClientInGame(i) && IsFakeClient(i) && GetEntProp(i, Prop_Send, "m_zombieClass") == 0) count++;
return count;
}
Does anyone have an option how to count live mobs