void KillBot() { if(ConnectThreadID != 0) { Log_NewMessage("Killing Thread... "); TerminateThread(ConnectThread, 0); Log_NewMessage("Done!\r\n"); if(qbIsConnected()) qbDisconnect(); qbShutdown(); qmUnloadMap(); } ConnectThreadID = 0; }
struct BotThinkFunc* botShutdown(struct BotState* state) { qbLog("Shutting down bot core..."); qbShutdown(); qbLog("Ok, exiting."); exit(EXIT_SUCCESS); }