/* Server event "round_end", Tick 15041: - "winner" = "1" - "reason" = "9" - "message" = "#Round_Draw" */ int maxrounds = 15; // max rounds public void OnPluginStart() { HookEventEx("round_end", round_end); } public void round_end(Event event, const char[] name, bool dontBroadcast) { static int wins = 0; if(event.GetInt("winner") >= 2) { wins++; PrintToChatAll("[SM] Rounds played %i/%i", wins, maxrounds); if(wins >= maxrounds) { wins = 0; PrintToChatAll("[SM] Restart game"); ServerCommand("mp_restartgame 3"); } } else { wins = 0; } }