not counting the fakeclients again. done in the past as well. made sense to try again.

This commit is contained in:
jenz 2026-07-20 20:31:36 +02:00
parent 47460a2db4
commit 295c92f49f

View File

@ -3247,6 +3247,13 @@ public void OnClientPostAdminCheck(int client)
stock int InternalGetMapPlayerRestriction(const char[] map) stock int InternalGetMapPlayerRestriction(const char[] map)
{ {
int NumPlayers = GetClientCount(false); int NumPlayers = GetClientCount(false);
for (int i = 1; i <= MaxClients; i++)
{
if (IsValidClient(i) && IsFakeClient(i))
{
NumPlayers--;
}
}
int MinPlayers = InternalGetMapMinPlayers(map); int MinPlayers = InternalGetMapMinPlayers(map);
int MaxPlayers = InternalGetMapMaxPlayers(map); int MaxPlayers = InternalGetMapMaxPlayers(map);