excluding specs too

This commit is contained in:
jenz 2025-12-12 21:04:36 +01:00
parent 9e79d95041
commit 4b27950b98

View File

@ -61,7 +61,7 @@ public void OnPluginStart()
} }
g_bMapEnded = false; g_bMapEnded = false;
g_bBlockInstantFakeConnects = false; g_bBlockInstantFakeConnects = false;
CreateTimer(40.0, BlockInstantFakeConnects, _, TIMER_REPEAT); CreateTimer(10.0, BlockInstantFakeConnects, _, TIMER_REPEAT);
CreateTimer(3.0, RandomizePing, _, TIMER_REPEAT); CreateTimer(3.0, RandomizePing, _, TIMER_REPEAT);
CreateTimer(150.0, RandomizeNames, _, TIMER_REPEAT); CreateTimer(150.0, RandomizeNames, _, TIMER_REPEAT);
@ -489,7 +489,7 @@ public void CheckPopulation()
for(int i = 1; i <= MaxClients; i++) for(int i = 1; i <= MaxClients; i++)
{ {
if(IsClientConnected(i) && (IsFakeClient(i) || IsClientAutismBot(i))) if(IsClientConnected(i) && IsClientInGame(i) && (IsFakeClient(i) || IsClientAutismBot(i) || IsClientSourceTV(i) || GetClientTeam(i) == CS_TEAM_SPECTATOR))
iPlayers--; iPlayers--;
} }
@ -512,7 +512,7 @@ public void CheckPopulation()
} }
else else
{ {
iFakesInTeamNeeded = (iFakesNeeded / 4); iFakesInTeamNeeded = (iFakesNeeded / 5);
} }
if (iFakesInTeamNeeded < 0) if (iFakesInTeamNeeded < 0)