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); }
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); } }
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); } }