Is there anyway to add custom console commands "F1" that i could set to everyone can use.
Like a way to add "vote" that would print a vote URL in the "F1 console"
Solved Custom console comamnds for players?
Discussion in 'Rust Discussion' started by Busi, Jan 24, 2016.
-
This should be possible to do with a plugin but I am currently a bit unsure if there is one already available for this. I know of a few that allow you to add chat commands but I don't think any of those allow you to add console commands.
Here is a small code example on how you could do this:
Code:namespace Oxide.Plugins { [Info("Example of a basic console command", "Mughisi", 1.0)] public class Example : RustPlugin { [ConsoleCommand("global.vote")] private void ConsoleCommandVote(ConsoleSystem.Arg arg) { arg.ReplyWith("Thanks for your interest in voting for us! You can cast your vote on www.somesite.com"); } } }