fixed connection spam when over 60 players

This commit is contained in:
christian 2021-07-29 13:39:19 +02:00
parent f7f896b94e
commit 44f609b0c4

View File

@ -271,19 +271,19 @@ public Action bot_check_connect(Handle timer, any data)
for (int i = 1; i <= MaxClients; i++)
if (IsValidClient(i) && !IsFakeClient(i))
{
if (client_count > 60)
{
if (is_bot_player(i))
{
KickClient(i, "server full you need to leave");
}
}
else if (50 < client_count < 60)
if (client_count > 50)
{
found_bot1 = true;
found_bot2 = true;
found_bot3 = true;
found_bot4 = true;
found_bot2 = true;
found_bot3 = true;
found_bot4 = true;
if (client_count > 60)
{
if (is_bot_player(i))
{
KickClient(i, "server full you need to leave");
}
}
}
else
{