Author Topic: ulx respond  (Read 2049 times)

0 Members and 1 Guest are viewing this topic.

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
ulx respond
« on: July 30, 2016, 09:59:56 PM »
How would I make this not do (Silent) and have it show for lets say all this is an example fyi I wouldn't obviously do it to this command.

Code: [Select]
function ulx.respond(calling_ply, target_ply,message)

ulx.fancyLog( {target_ply}, "Admins to #P: " .. message, target_ply )

ulx.fancyLogAdmin( {calling_ply, target_ply},true, "#P via admin respond to #P: " .. message, calling_ply, target_ply )

end

local respond = ulx.command("Essentials", "ulx respond", ulx.respond, "#",true,true)

respond:addParam{ type=ULib.cmds.PlayerArg }

respond:addParam{ type=ULib.cmds.StringArg, hint="message", ULib.cmds.takeRestOfLine }

respond:defaultAccess( ULib.ACCESS_ADMIN)

respond:help( "Send anonymous admin message." )
« Last Edit: July 30, 2016, 10:04:33 PM by C.Finley »

Offline .gdraw

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • Steam
Re: ulx respond
« Reply #1 on: July 30, 2016, 11:24:30 PM »
the fancyLogAdmin is what makes it silent, I'm not 100% sure how to change that as I'm a noob but that's what you're looking to change.

EDIT: I was trying to help but I'm wrong, sorta, idk
« Last Edit: July 30, 2016, 11:28:33 PM by .gdraw »

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given