• Print

Author Topic: ulx respond  (Read 5531 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 »

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: ulx respond
« Reply #2 on: July 30, 2016, 11:30:08 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.

This is half-correct. The fancyLogAdmin is causing it to be silent, but only because you have a "true" in the statement.
Code: Lua
  1. ulx.fancyLogAdmin( {calling_ply, target_ply}, true, "#P via admin respond to #P: " .. message, calling_ply, target_ply )
The "true" in that statement is causing it to be silent.


edit: Also, probably best in the "Developers Corner" section of the forums. fyi, it's not my job to be enforcing that or anything, just pointing out as it would be much easier to help.
« Last Edit: July 30, 2016, 11:42:59 pm by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: ulx respond
« Reply #3 on: July 31, 2016, 05:53:43 am »
ok thank you and sorry if this is wrong spot it says General chat and stuff so I assumed this is fine.

  • Print