• Print

Author Topic: Hiding admin commands from users  (Read 4255 times)

0 Members and 1 Guest are viewing this topic.

Offline Pro_instinct

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Hiding admin commands from users
« on: December 21, 2013, 08:15:27 am »
Hey guys I was just wondering if its possible to hide commands from other users say if I !kick "username" I don't want !kick "username" showing in the chat. I just want them to be kicked. Any support is appreciated, thanks in advance! -Instinct
« Last Edit: December 21, 2013, 08:42:42 am by Pro_instinct »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Hiding admin commands from users
« Reply #1 on: December 21, 2013, 09:07:22 am »
Run it in console instead. :)
Experiencing God's grace one day at a time.

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: Hiding admin commands from users
« Reply #2 on: December 21, 2013, 09:53:13 am »
In the lua, where you see

Code: Lua
  1. local kick = ulx.command( "Utility", "ulx kick", ulx.kick, "!kick" )

change it to

Code: Lua
  1. local kick = ulx.command( "Utility", "ulx kick", ulx.kick, "!kick", true )

Offline Pro_instinct

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Hiding admin commands from users
« Reply #3 on: December 21, 2013, 10:01:33 am »
Where exactly do I find this piece of code to edit it?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: Hiding admin commands from users
« Reply #4 on: December 21, 2013, 12:36:18 pm »
garrysmod/addons/ULX/lua/ulx/modules/sh/util.lua

Be warned though.. we never recommend modifying base ULX files because:
1. You might break everything (so backup the file before you modify it)
2. When you update ULX you will lose all of your modifications.


There is no alternative way to modify the function without modifying the base file though. Good luck!

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: Hiding admin commands from users
« Reply #5 on: December 21, 2013, 02:51:02 pm »
I just go to the commands echo tab and turn off the echo. It takes about 6 seconds.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Hiding admin commands from users
« Reply #6 on: December 21, 2013, 05:17:56 pm »
Why must everyone be so complicated?
Like Megiddo answered, open up the console and type "ulx <command> <player>"
Most commands will never be echoed that way, especially if the echo mode is set to anonymous.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

  • Print