1. Oxide 1.18 has been discontinued and is no longer supported. Please do not post requests for Oxide 1.18 plugins or support.
    We recommend upgrading to Oxide 2.0 as able. Plugins can be easily updated to support it as well.
  1. mcnovinho08

    mcnovinho08 Scavenger Plugin Developer

    Would have some way to block the command of the player in chat, example the guy was reporting during the test he will not have to accept tpr among other things!
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Hook into the OnRunCommand hook and cancel it.
     
  3. mcnovinho08

    mcnovinho08 Scavenger Plugin Developer

    But at the same time canceling the command wanted to send a message to both players as the target user and netuser
     
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Send a message before cancelling it then. ;)
     
  5. mcnovinho08

    mcnovinho08 Scavenger Plugin Developer

    Take the order, but you could send me an example of how to block the command, because I have never used this type of void!
     
  6. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Code (C#):
    object OnRunCommand(ConsoleSystem.Arg arg)
    {
        if (arg.command == "blah") return true; // Command blocked
        return null;
    }
    Keep in mind this code may vary, as I don't really recall much Rust Legacy code anymore.
     
  7. mcnovinho08

    mcnovinho08 Scavenger Plugin Developer