forgot spectator check
This commit is contained in:
parent
5ab55caec8
commit
9f42cd9e81
@ -49,6 +49,7 @@
|
||||
#include <unloze_playtime>
|
||||
#include <nextmap>
|
||||
#include <sdktools>
|
||||
#include <cstrike>
|
||||
#include <multicolors>
|
||||
#include <PlayerManager>
|
||||
#include <nominations_extended>
|
||||
@ -3033,7 +3034,8 @@ stock bool InternalAreRestrictionsActive()
|
||||
int AcitvePlayerCount = 0;
|
||||
for (int i = 0; i < MaxClients; i++)
|
||||
{
|
||||
if (IsValidClient(i) && !IsFakeClient(i) && !IsClientSourceTV(i) && !is_bot_player[i] && GetClientIdleTime(i) < g_iPlayerAFKTime)
|
||||
if (IsValidClient(i) && !IsFakeClient(i) && !IsClientSourceTV(i) && !is_bot_player[i] && GetClientIdleTime(i) < g_iPlayerAFKTime
|
||||
&& (GetClientTeam(i) == CS_TEAM_T || GetClientTeam(i) == CS_TEAM_CT))
|
||||
{
|
||||
AcitvePlayerCount++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user