From 295c92f49f77c48cdbd93ee94dac312e2fd8156a Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 20 Jul 2026 20:31:36 +0200 Subject: [PATCH] not counting the fakeclients again. done in the past as well. made sense to try again. --- .../scripting/mapchooser_extended_unloze.sp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mapchooser_extended/scripting/mapchooser_extended_unloze.sp b/mapchooser_extended/scripting/mapchooser_extended_unloze.sp index b2157e8..6dbacde 100755 --- a/mapchooser_extended/scripting/mapchooser_extended_unloze.sp +++ b/mapchooser_extended/scripting/mapchooser_extended_unloze.sp @@ -3247,6 +3247,13 @@ public void OnClientPostAdminCheck(int client) stock int InternalGetMapPlayerRestriction(const char[] map) { int NumPlayers = GetClientCount(false); + for (int i = 1; i <= MaxClients; i++) + { + if (IsValidClient(i) && IsFakeClient(i)) + { + NumPlayers--; + } + } int MinPlayers = InternalGetMapMinPlayers(map); int MaxPlayers = InternalGetMapMaxPlayers(map);