ULX

Author Topic: Only echo  (Read 9324 times)

0 Members and 1 Guest are viewing this topic.

Offline pikkip

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
Only echo
« on: December 30, 2011, 04:34:50 PM »
Hi, i am owning a build server, and every time i am running a cmd etc. like !kick [Name] it shows my message "!kick [Name]" and the echo.

It would be nice that its only the echo will appear, to minimize the chat log and space in chat.

Thanks,
pikkip

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Only echo
« Reply #1 on: December 30, 2011, 05:33:41 PM »
First, best way to prevent chat spam, don't use chat to run commands. Chat isn't meant to be stopped.
Use console commands. They autocomplete for you and can usually be done faster than chat commands.

Second, re: console commands -
If you've not already, take a look at your <gmod_server>/data/ulx/config.txt.
It has many options, including what is echo'ed to clients.
If you don't have a config.txt there, COPY (not edit) the config.txt file from <gmod_server>/addons/ulx/data/ulx/ to your <gmod_server>/data/ulx folder then look for/edit the section that looks like below.
Code: [Select]
ulx logEcho 1 ; Echo mode
; Echo modes:
; 0 - OFF No output to any players when an admin command is used
; 1 - ANONYMOUS Output to players without access to see who used the command (admins by default) similar to "(Someone) slapped Bob with 0 damage"
; 2 - FULL Output to players similar to "Foo slapped Bob with 0 damage"
There are also several other logging options you may use to help. Look over them, consider them carefully...many things logged, if turned off, may be a detriment later.

Third - Use XGUI with second part modification above.
« Last Edit: December 30, 2011, 05:36:04 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline pikkip

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
Re: Only echo
« Reply #2 on: January 01, 2012, 11:24:20 AM »
First, best way to prevent chat spam, don't use chat to run commands. Chat isn't meant to be stopped.
Use console commands. They autocomplete for you and can usually be done faster than chat commands.

Second, re: console commands -
If you've not already, take a look at your <gmod_server>/data/ulx/config.txt.
It has many options, including what is echo'ed to clients.
If you don't have a config.txt there, COPY (not edit) the config.txt file from <gmod_server>/addons/ulx/data/ulx/ to your <gmod_server>/data/ulx folder then look for/edit the section that looks like below.
Code: [Select]
ulx logEcho 1 ; Echo mode
; Echo modes:
; 0 - OFF No output to any players when an admin command is used
; 1 - ANONYMOUS Output to players without access to see who used the command (admins by default) similar to "(Someone) slapped Bob with 0 damage"
; 2 - FULL Output to players similar to "Foo slapped Bob with 0 damage"
There are also several other logging options you may use to help. Look over them, consider them carefully...many things logged, if turned off, may be a detriment later.

Third - Use XGUI with second part modification above.

Well, its was more so it will remove the "!kick [Name]" thing in chat, not the echo.

Any change of i can do that by editing anything?

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Only echo
« Reply #3 on: January 01, 2012, 11:17:58 PM »
In ULib/lua/ulib/server/concommand.lua try adding
Code: [Select]
return ""AFTER line 58...

Didn't test it, but I believe it should work.

Offline pikkip

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
Re: Only echo
« Reply #4 on: January 02, 2012, 07:00:05 PM »
In ULib/lua/ulib/server/concommand.lua try adding
Code: [Select]
return ""AFTER line 58...

Didn't test it, but I believe it should work.

I dint quite get this...

Is it possible for you to copy your own, past it in desktop, edit what you think can solve it, and send it in here, i will be grateful if you did, and ofc. i am still grateful for that you solved it for me, i just need to know how i do it, (I'm the worst Einstein evar)

*Edit* I tried just add it instantly into the code, and it worked! (Tought it was gonna do errors after i saw all those "end")

Thanks mate, must live long! (or something like that... lol..)
« Last Edit: January 02, 2012, 07:08:16 PM by pikkip »

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Only echo
« Reply #5 on: January 03, 2012, 02:47:29 PM »
No problem.

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Only echo
« Reply #6 on: January 04, 2012, 09:03:01 AM »
Thanks Aaron113! This is actually something I've wanted as well.  8)
My TTT server. Join the fun!

Offline pikkip

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
Re: Only echo
« Reply #7 on: January 05, 2012, 06:17:53 AM »
:3 hes a awesome dude,

oh btw, i wanna suggest this to the official ULX ect. with a option aswell as you can turn off the echo, you will be enable to turn off chat (or something like that) hopefully this idea gets trough =3