also checking next map set by mapvote end
This commit is contained in:
parent
ca95f5a961
commit
9e703da905
@ -13,6 +13,7 @@
|
||||
#include <cstrike>
|
||||
#include <socket>
|
||||
#include <UNLOZE.secret>
|
||||
#include <mapchooser_extended>
|
||||
|
||||
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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user