Thread: [Solved] count mobs l4d
View Single Post
farawayf
Senior Member
Join Date: Jan 2019
Old 05-20-2019 , 12:48   Re: count mobs l4d
Reply With Quote #2

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 ?

PHP Code:

int IsPanicMobsAlive
() 

    
int count 0
    for (
int i 1<= MaxClientsi++) 
        if (
IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i) && IsFakeClient(i) && GetClientTeam(i) == 3count++; 
    return 
count


Last edited by farawayf; 05-20-2019 at 12:50.
farawayf is offline