fixed connection spam when over 60 players
This commit is contained in:
parent
f7f896b94e
commit
44f609b0c4
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user