Quote:
Originally Posted by farawayf
as far as i know "3" is a infected team, so i think yes it will.
|
No, it doesn't work, I tried the code does not work.
PHP Code:
if(IsPanicMobsAlive() >= 5)
{
PrintHintText(client, "Да Подожди Ты %N Запускать Генератор, Мобов много: %s.", client, IsPanicMobsAlive());
return Plugin_Handled;
}
}
return Plugin_Continue;
}
int IsPanicMobsAlive()
{
int count = 0;
for (int i = 1; i <= MaxClients; i++)
if (IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i) && IsFakeClient(i) && GetClientTeam(i) == 3) count++;
return count;
}