Exemplo n.º 1
0
        public void End()
        {
            Status          = ZombieGameStatus.NotStarted;
            MaxRounds       = 0;
            RoundInProgress = false;
            RoundStart      = DateTime.MinValue;
            RoundEnd        = DateTime.MinValue;
            if (plugin.Game != null)
            {
                plugin.Game = null; plugin.Unload(false);
            }

            Player[] online = PlayerInfo.Online.Items;
            Alive.Clear();
            Infected.Clear();

            Bounties.Clear();
            Picker.Clear();

            foreach (Player pl in online)
            {
                pl.Game.Referee  = false;
                pl.Game.RatedMap = false;
                pl.Game.ResetZombieState();
                ResetInvisibility(pl);
                pl.SetPrefix();

                if (pl.level == null || !pl.level.name.CaselessEq(MapName))
                {
                    continue;
                }
                HUD.Reset(pl);
            }

            LastLevelName = "";
            MapName       = "";
            Map           = null;
            UnhookStats();
        }
Exemplo n.º 2
0
 private void OnDisable()
 {
     Picker.Clear();
 }