Author Topic: How would I add a command, and make all commands silent?  (Read 7063 times)

0 Members and 2 Guests are viewing this topic.

Offline NnyAskC

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
How would I add a command, and make all commands silent?
« on: March 24, 2012, 06:25:24 PM »
Okay so, first of all how would I go about adding a command ie a !modban that would ban someone for 1440 instead of whatever you type in.

Second is how would I go about making all admin commands appear only to other admins?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How would I add a command, and make all commands silent?
« Reply #1 on: March 24, 2012, 10:29:44 PM »
Re: Command
See http://forums.ulyssesmod.net/index.php/topic,4464.0.html
Start and Read those, ask questions from there
See also http://www.ulyssesmod.net/docs for ULib documentation.
ULX has a little documentation, but it's mostly notes/comments within the lua files themselves.

Re: Command echos.
See your /addons/ulx/data/ulx/config.txt.
Copy it to your gmod/data/ulx/config.txt, edit from there. There are several echo states.
I believe one of them makes admin only echos.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline NnyAskC

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: How would I add a command, and make all commands silent?
« Reply #2 on: March 25, 2012, 06:02:16 PM »
Thank you! ^_^

One thing though, the only echo modes are what I see below.
I only see
"Off": No echos at all.
"Anonymous": Except for admin+ shows "(Someone) did command"
"Full": You should be able to guess this one. =P
« Last Edit: March 25, 2012, 07:39:51 PM by NnyAskC »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How would I add a command, and make all commands silent?
« Reply #3 on: April 20, 2012, 12:47:28 PM »
If you're willing to modify lua files for the admin-echoes only, I'd be willing to help. :)
Experiencing God's grace one day at a time.