Author Topic: How to make ULX commands silent.  (Read 8872 times)

0 Members and 1 Guest are viewing this topic.

Offline xXPANAGE28

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
How to make ULX commands silent.
« on: February 08, 2014, 11:32:44 AM »
Title says it all. Basically like the spectate command it says: "SILENT".
I can't seem to find the code, so if anyone could help me highly appreciated!

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: How to make ULX commands silent.
« Reply #1 on: February 08, 2014, 12:31:07 PM »
Code: [Select]
ulx.fancyLogAdmin( calling_ply, true, "#A began spectating #T", target_ply )Taken from the spectate command, the second parameter ("true") will make it show up as "(SILENT) Admin began spectating Target".
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to make ULX commands silent.
« Reply #2 on: February 08, 2014, 04:53:18 PM »
Rather than go editing ULX code, you should change your echo mode using XGUI or in the /data/ulx/config.txt
That file is where the majority of the settings in ULX are stored, and has descriptions of what each one does.
There's an echo mode that will allow what you're asking for for all commands.

I'm really surprised at how many people are trying to tell others to go digging into ULX code lately, when we wrote settings to allow for what most/many are asking.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: How to make ULX commands silent.
« Reply #3 on: February 09, 2014, 03:52:51 AM »
Rather than go editing ULX code, you should change your echo mode using XGUI or in the /data/ulx/config.txt
That file is where the majority of the settings in ULX are stored, and has descriptions of what each one does.
There's an echo mode that will allow what you're asking for for all commands.

I'm really surprised at how many people are trying to tell others to go digging into ULX code lately, when we wrote settings to allow for what most/many are asking.
I think he just used the command as an example. Seems like he's trying to create his own command, but I could be wrong.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.