Jump to content

Adding more chat commands

Not a Bug 1.1.81

mdstapleton30
mdstapleton30

Posted

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?

David

Posted

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");

 

David

Posted

Changed Status from Pending to Not a Bug

Emil Vad

Posted

Can i ask what file i will have to add that to 🙂

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

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.