diff --git a/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp b/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp index d33e17f..8662449 100755 --- a/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp +++ b/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp @@ -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++; }