Esempio n. 1
0
    public static bool Run(string strCommand, bool bWantsFeedback = false)
    {
        string empty = string.Empty;
        bool   flag  = ConsoleSystem.RunCommand_Clientside(strCommand, out empty, bWantsFeedback);

        if (empty.Length > 0)
        {
            Debug.Log(empty);
        }
        return(flag);
    }
Esempio n. 2
0
    public void RunCommand(string strInput)
    {
        this.AddText(string.Concat("[color #00ff00]> ", strInput, "[/color]"), false);
        string empty = string.Empty;

        if (!ConsoleSystem.RunCommand_Clientside(strInput, out empty, true))
        {
            ConsoleNetworker.SendCommandToServer(strInput);
        }
        else if (empty != string.Empty)
        {
            this.AddText(string.Concat("[color #ffff00]", empty, "[/color]"), false);
        }
    }
Esempio n. 3
0
    public void RunCommand(string strInput)
    {
        this.AddText("[color #00ff00]> " + strInput + "[/color]", false);
        string strOutput = string.Empty;

        if (ConsoleSystem.RunCommand_Clientside(strInput, out strOutput, true))
        {
            if (strOutput != string.Empty)
            {
                this.AddText("[color #ffff00]" + strOutput + "[/color]", false);
            }
        }
        else
        {
            ConsoleNetworker.SendCommandToServer(strInput);
        }
    }