diff --git a/mapchooser_extended/scripting/mapchooser_extended_unloze.sp b/mapchooser_extended/scripting/mapchooser_extended_unloze.sp index 6dbacde..ad9134b 100755 --- a/mapchooser_extended/scripting/mapchooser_extended_unloze.sp +++ b/mapchooser_extended/scripting/mapchooser_extended_unloze.sp @@ -947,7 +947,16 @@ public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason) int timeleft; GetMapTimeLeft(timeleft); //yeah sure why not just do it on every round end anyways. - if (GetClientCount(false) > g_iDontCooldownMap && !g_first_map_no_cooldown) + + int NumPlayers = GetClientCount(false); + for (int i = 1; i <= MaxClients; i++) + { + if (IsValidClient(i) && IsFakeClient(i)) + { + NumPlayers--; + } + } + if (NumPlayers > g_iDontCooldownMap && !g_first_map_no_cooldown) { static char map[PLATFORM_MAX_PATH]; GetCurrentMap(map, PLATFORM_MAX_PATH); @@ -3289,6 +3298,14 @@ stock bool InternalAreRestrictionsActive() // a lot more simplified again so its easier to understand. int NumPlayers = GetClientCount(false); + + for (int i = 1; i <= MaxClients; i++) + { + if (IsValidClient(i) && IsFakeClient(i)) + { + NumPlayers--; + } + } if (NumPlayers <= g_iSkipAllRestrictions) { return false;