From 6b7b78f9f50a9cbd9c06b04ae84a1c5b483f7c86 Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 6 Jun 2025 22:53:57 +0200 Subject: [PATCH] re-arranging when to connect to ze2 --- AutismBotIngame/scripting/autism_bot_info.sp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/AutismBotIngame/scripting/autism_bot_info.sp b/AutismBotIngame/scripting/autism_bot_info.sp index f7286a1..e400acb 100755 --- a/AutismBotIngame/scripting/autism_bot_info.sp +++ b/AutismBotIngame/scripting/autism_bot_info.sp @@ -525,7 +525,7 @@ public Action bot_check_connect(Handle timer, any data) send_socket_msg(msg, strlen(msg), ports[2]); send_socket_msg(msg, strlen(msg), ports[3]); } - else if (client_count < max_allowed_players) + else if (client_count < max_allowed_players - 5) { Format(msg, sizeof(msg), "connect to ze"); if (!bot1_connected) @@ -537,6 +537,14 @@ public Action bot_check_connect(Handle timer, any data) if (!bot4_connected) send_socket_msg(msg, strlen(msg), ports[3]); } + else + { + Format(msg, sizeof(msg), "connect to ze2"); + send_socket_msg(msg, strlen(msg), ports[0]); + send_socket_msg(msg, strlen(msg), ports[1]); + send_socket_msg(msg, strlen(msg), ports[2]); + send_socket_msg(msg, strlen(msg), ports[3]); + } } else {