When i type in my command it says
Player: !slay
( SILENT ) <-- Why that part?
Different in effect and lua.
Take a look at
[url]https://wiki.garrysmod.com/page/Player/KillSilent[/url]
[url]https://wiki.garrysmod.com/page/Player/Kill[/url]
they drag different functions when called.
@Kiro The Pro Slay was just an example. I have a command that just prints hi. :)
In ULX, inside of FancyLogAdmin you can set the log to silent by just setting true.
[lua]function ulx.test( calling_ply, msg )
ulx.fancyLogAdmin( calling_ply, true, "#A typed #s", msg ) -- the true is setting it silent.
end
local test = ulx.command( CATEGORY_NAME, "ulx test", ulx.test, "!test", true )
test:addParam{ type=ULib.cmds.StringArg, hint="message", ULib.cmds.takeRestOfLine }
test:defaultAccess( ULib.ACCESS_SUPERADMIN )
test:help( "Example" )[/lua]
Sorry, you need to Log In to post a reply to this thread.