should fix to correctly kick
This commit is contained in:
parent
6eedaec56f
commit
a27f0fa888
@ -232,25 +232,17 @@ public Action bot_check_connect(Handle timer, any data)
|
||||
for (int i = 1; i <= MaxClients; i++)
|
||||
if (IsValidClient(i) && !IsFakeClient(i))
|
||||
{
|
||||
char ip_addr[generic_length];
|
||||
GetClientIP(i, ip_addr, sizeof(ip_addr));
|
||||
if (client_count > 61)
|
||||
{
|
||||
found_bot_1 = true;
|
||||
found_bot_2 = true;
|
||||
char msg[generic_length];
|
||||
if (StrEqual(ip_addr, "127.0.0.1"))
|
||||
if (is_bot_player(i))
|
||||
{
|
||||
KickClient(i, "server full you need to leave");
|
||||
Format(msg, sizeof(msg), "bot kicked server full");
|
||||
send_socket_msg(msg, strlen(msg));
|
||||
}
|
||||
else if (StrEqual(ip_addr, "164.132.201.173"))
|
||||
{
|
||||
KickClient(i, "server full you need to leave");
|
||||
Format(msg, sizeof(msg), "bot kicked server full");
|
||||
send_socket_msg1(msg, strlen(msg));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user