コード例 #1
0
 protected override void OnExited(EventArgs e)
 {
     base.OnExited(e);
     Server.SendRconCommand("unloadfs EntryMap");
     Server.SendRconCommand("unloadfs RemoveBuilding");
     Server.SendRconCommand($"unloadfs {GetCurrentMap()}");
     Flag.RemoveAll();
     TeamAlpha.Icon.Dispose();
     TeamBeta.Icon.Dispose();
     TimerLeft.Dispose();
     TextDrawGlobal.Destroy();
     TextDrawEntry.Destroy();
     Console.WriteLine("  The gamemode was unloading correctly.");
 }