Jump to content

Adding more chat commands

Not a Bug 1.1.81

I would like to add more than one chat command into the json. For instance I would like for players to use /s and /shop. How would I go about adding more lines of code to have that happen?

Share this comment


Link to comment

To include it as proper option I would have to break config again so nothing something Im gonna do right now but you can simply add this line of code into your file

 

[ChatCommand("s")]
void mynewcommand1(BasePlayer player) => player.SendConsoleCommand("chat.say /shop");

 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.1k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.