From d12aff14ac5bec5b67ca18d9625281a9a647ce93 Mon Sep 17 00:00:00 2001 From: jenz Date: Tue, 7 Apr 2026 12:18:52 +0200 Subject: [PATCH] missed ingamecheck --- FakeClients/scripting/FakeClients.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FakeClients/scripting/FakeClients.sp b/FakeClients/scripting/FakeClients.sp index e07d2fd..ec9a69d 100755 --- a/FakeClients/scripting/FakeClients.sp +++ b/FakeClients/scripting/FakeClients.sp @@ -406,7 +406,7 @@ public void CheckPopulation() { iPlayers = 16; } - int iFakesInTeamNeeded = iPlayers / 2; + int iFakesInTeamNeeded = RoundToFloor(iPlayers / 2.5); int iFakesNeeded = iPlayers; iPlayers = 0; @@ -441,7 +441,7 @@ public void CheckPopulation() int specs = 0; for(int i = 1; i <= MaxClients; i++) { - if(IsClientConnected(i) && GetClientTeam(i) <= CS_TEAM_SPECTATOR) + if(IsClientConnected(i) && IsClientInGame(i) && GetClientTeam(i) <= CS_TEAM_SPECTATOR) { specs++; }