minplayer and maxplayer requirement now consider afk's as well
This commit is contained in:
parent
c0fb1dd61a
commit
c0cddad8cb
@ -3226,11 +3226,11 @@ stock int InternalGetMapPlayerRestriction(const char[] map)
|
||||
{
|
||||
//int NumPlayers = GetClientCount(false);
|
||||
int NumPlayers = 0;
|
||||
//excluding non connected players, fakeclients, sourceTV, autism bots and nosteamers from player count restriction
|
||||
//excluding non connected players, fakeclients, sourceTV, autism bots and AFKs from player count restriction
|
||||
for (int client = 1; client <= MaxClients; client++)
|
||||
{
|
||||
if (IsClientConnected(client) && IsClientInGame(client) && !IsFakeClient(client) && !IsClientSourceTV(client) && !is_bot_player[client]
|
||||
)
|
||||
&& GetClientIdleTime(client) < g_iPlayerAFKTime)
|
||||
{
|
||||
NumPlayers++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user