Ejemplo n.º 1
0
    /// <summary>
    /// Tells the server to kill the player that sent this message
    /// </summary>
    /// <param name="obj">Dummy variable that is required to make this signiture different
    /// from the non-static function of the same name. Just pass null. </param>
    /// <returns></returns>
    public static SuicideMessage Send(Object obj)
    {
        SuicideMessage msg = new SuicideMessage();

        msg.Send();
        return(msg);
    }
        public static void RunSuicide()
        {
            bool playerSpawned = (PlayerManager.LocalPlayer != null);

            if (!playerSpawned)
            {
                Logger.Log("Cannot commit suicide. Player has not spawned.");
            }
            else
            {
                SuicideMessage.Send(null);
            }
        }
        public static void RunSuicide()
        {
            bool playerSpawned = (PlayerManager.LocalPlayer != null);

            if (!playerSpawned)
            {
                Logger.LogError("Cannot commit suicide. Player has not spawned.", Category.DebugConsole);
            }
            else
            {
                SuicideMessage.Send(null);
            }
        }