1. How would I execute multiple commands with just one command. So basically I do /clearall for example and then it will automatically run commands of other plugins that i set.
     
  2. Wulf

    Wulf Community Admin

    The below example assumes you want both a chat and console command, and even though arguments are passed in the MyCommand function, my example is not using them. You can remove them if you end up not needing them.
    Code:
    function PLUGIN:Init()
        command.AddChatCommand("mycmd", self.Plugin, "MyCommand")
        command.AddConsoleCommand("global.mycmd", self.Plugin, "MyCommand")
    endfunction PLUGIN:MyCommand(player, cmd, args)
        rust.RunServerCommand("command1")
        rust.RunServerCommand("command2 intexample")
        rust.RunServerCommand("command3 \"quote example\"")
        rust.RunServerCommand("command4 \"multi quote\" \"example\"")
    end
     
  3. Is there a way so it can execute ingame only commands.
     
  4. Wulf

    Wulf Community Admin

    Not easily. You'd have to call the function you want to use in each plugin directly, passing the requirement arguments to it.
     
  5. So what you're saying is I should go to the plugins itself and convert it so all the executions are made from one command in my own plugin?
     
  6. Wulf

    Wulf Community Admin

    No, I'm saying you'd need to call the other plugin functions from your own plugin, and pass the arguments that the function requires from your own.