not counting the fakeclients again. done in the past as well. made sense to try again.
This commit is contained in:
parent
47460a2db4
commit
295c92f49f
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user