ULX

Author Topic: function to check premission  (Read 1692 times)

0 Members and 1 Guest are viewing this topic.

Offline tzahush

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
function to check premission
« on: November 07, 2015, 06:27:27 AM »
hello.
I was wondering if there is a function to check if i got a permission to use a certian command.
example: check if i can use "ulx kick".
Thanks.
« Last Edit: November 07, 2015, 06:56:23 AM by tzahush »

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: function to check premission
« Reply #1 on: November 07, 2015, 08:02:15 AM »
You can use ULib.ucl.query( ply, permission ). Replace ply with the player you want to check, and replace permission with the command.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline tzahush

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
Re: function to check premission
« Reply #2 on: November 07, 2015, 08:12:31 AM »
You can use ULib.ucl.query( ply, permission ). Replace ply with the player you want to check, and replace permission with the command.
Thanks! :)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: function to check premission
« Reply #3 on: November 07, 2015, 08:27:08 AM »
See also - http://ulyssesmod.net/docs/ - ULX was built on our ULib library.
Explanations of the Ulib functions/hooks/commands are desribed there.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: function to check premission
« Reply #4 on: November 07, 2015, 11:51:43 AM »
See also - http://ulyssesmod.net/docs/ - ULX was built on our ULib library.
Explanations of the Ulib functions/hooks/commands are desribed there.

Honestly don't know what I hate more the Youtube-layout, Google+, or ulx doc
Such a hard decision.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.