public virtual void End() { WriteChat(Gamemode.ToUpper(), "Game finished!", 255, 0, 0); Map.ClearObjects(); ClientGlobals.SetSpectator(true); ClientGlobals.CurrentGame = null; Dispose(); }
public void EndGame() { if (ClientGlobals.CurrentGame != null) { ClientGlobals.CurrentGame.End(); ClientGlobals.CurrentGame = null; ClientGlobals.SetSpectator(true); ClientGlobals.SetNoClip(true); } }
public virtual void Start(float gameTime) { SetMaxWantedLevel(0); LocalPlayer.Character.Health = 100; LocalPlayer.Character.MaxHealth = 100; ClientGlobals.SetSpectator(false); WriteChat(Gamemode.ToUpper(), "Game started.", 255, 0, 0); RemoveAllPedWeapons(PlayerPedId(), true); GameTimerEnd = GetGameTimer() + gameTime; HUD.Start(); }
private void PlayerSpawn(ExpandoObject spawnInfo) { if (BaseGamemode.Team == -1) { ClientGlobals.SetNoClip(true); } else if (ClientGlobals.CurrentGame != null) { ClientGlobals.CurrentGame.PlayerSpawn(); } else { ClientGlobals.SetSpectator(true); ClientGlobals.SetNoClip(true); } }