Ejemplo n.º 1
0
        public void EndMapVote(dynamic id)
        {
            int       ID     = Convert.ToInt32(id);
            ServerMap winner = MapManager.Maps.Where(x => x.ID == ID).FirstOrDefault();

            BaseGamemode.WriteChat("Map Vote", "Winner is " + winner.Name, 200, 200, 0);
        }
Ejemplo n.º 2
0
 public static void StartGame(string ID)
 {
     ServerGlobals.CurrentGame          = (BaseGamemode)Activator.CreateInstance(ServerGlobals.Gamemodes[ID.ToLower()].GetType());
     ServerGlobals.CurrentGame.GameTime = GetGameTimer() + ServerGlobals.CurrentGame.Settings.GameLength;
     ServerGlobals.CurrentGame.Map      = MapManager.FindMap(ID);
     ServerGlobals.CurrentGame.Start();
     BaseGamemode.WriteChat(ID.ToUpper(), "Playing map " + ServerGlobals.CurrentGame.Map.Name, 200, 30, 30);
 }
Ejemplo n.º 3
0
        public static void EndGameVote(dynamic id)
        {
            string ID = id.ToString();

            BaseGamemode.WriteChat("Game Vote", "Winner is " + ID, 200, 200, 0);
            gameStartTimer = GetGameTimer() + (1 * 1000 * 10);
            gameStartID    = ID;
        }