diff --git a/AutismBotIngame/scripting/autism_bot_simulate_movement.sp b/AutismBotIngame/scripting/autism_bot_simulate_movement.sp index 8a75061..6279d41 100755 --- a/AutismBotIngame/scripting/autism_bot_simulate_movement.sp +++ b/AutismBotIngame/scripting/autism_bot_simulate_movement.sp @@ -13,6 +13,7 @@ #include #include #include +#include int target_client[5]; //4 autism bots. @@ -309,6 +310,18 @@ public void send_socket_msg(char[] query_msg, int len, int port) SocketSendTo(global_socket, query_msg, len, "127.0.0.1", port); //udp } +public void OnMapVoteEnd(const char[] map) +{ + if (StrEqual(map, "##extend##") || StrEqual(map, "##dontchange##")) + { + return; + } + + char msg[generic_length]; + Format(msg, sizeof(msg), "download map:%s", map); + send_socket_msg(msg, strlen(msg), ports[0]); +} + public Action bot_check_connect(Handle timer, any data) { char nextmap[64];