General > Developers Corner

function to check premission

(1/1)

tzahush:
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.

roastchicken:
You can use ULib.ucl.query( ply, permission ). Replace ply with the player you want to check, and replace permission with the command.

tzahush:

--- Quote from: roastchicken 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.

--- End quote ---
Thanks! :)

JamminR:
See also - http://ulyssesmod.net/docs/ - ULX was built on our ULib library.
Explanations of the Ulib functions/hooks/commands are desribed there.

Bite That Apple:

--- Quote from: JamminR 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.

--- End quote ---

Honestly don't know what I hate more the Youtube-layout, Google+, or ulx doc
Such a hard decision.

Navigation

[0] Message Index

Go to full version