1. Hi there!

    There's a few plugins on my server that are run through the rcon command that are only available to Admins, unless the whole system becomes open (and everything just gets abused). I'd love for players to be able to activate these plugins by themselves using a custom command that I can setup.

    An example of what I'm trying to do:
    • User uses /callcar
    • Server processses and runs rcon command: call.car %%STEAMID64%%
    Does such a thing exist? It needs to be able to include the SteamID and be flexible for both what the user can use for the chat command and also the RCON command.

    Thanks for pointing me in the right direction! :)
     
  2. If you are talking about some plugins that are public here on Oxide, the best thing would be to ask for these things under plugin support thread. But if you want like whole plugin that will interference with other plugins to get the use to players... I think the simplest way would be to ask in those plugins you want for permission system provided by oxide, it will grant you that players can use this and admins can use this, based on permissions. Players will not need to remember another command to do something ;) also call.car? aren't you talking about Hurtworld? cause this is Rust :p
     
  3. The BasePlayer object has a SendConsoleCommand method that allows you to run a console command from the client which is what I think you want. A little example:
    Code:
            [ChatCommand("callcar")]
            private void CallCarCommand(BasePlayer player, string command, string[] args)
            {
                // Do some stuff like permission checks, user checks, whatever you need/want
                player.SendConsoleCommand($"call.car {player.UserIDString}");
            }