#pragma semicolon 1 #include #include #define PLUGIN_VERSION "1.0.0" #define TIMER_INTERVAL 30.0 public Plugin:myinfo = { name = "Server Quit If Empty", author = "kimoto", description = "Server Quit If Empty", version = PLUGIN_VERSION, url = "http://kymt.me/" }; new Handle:g_timer = INVALID_HANDLE; public Action:Timer_ServerQuit(Handle:timer, any:client) { ServerQuitIfEmpty(); } public OnPluginStart() { RegServerCmd("server_quit_if_empty", Command_ServerQuitIfEmpty); RegServerCmd("server_quit_next_empty", Command_ServerQuitNextEmpty); } public Action:Steam_RestartRequested() { LogMessage("SteamUpdate Detected"); Command_ServerQuitNextEmpty(1); } public IsClientBot(client) { new String:SteamID[256]; GetClientAuthString(client, SteamID, sizeof(SteamID)); if (StrEqual(SteamID, "BOT")) return true; return false; } public IsServerEmpty() { for(new i=1; i