Ulysses

General => Developers Corner => Topic started by: tzahush on November 07, 2015, 06:27:27 AM

Title: function to check premission
Post by: tzahush 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.
Title: Re: function to check premission
Post by: 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.
Title: Re: function to check premission
Post by: tzahush 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! :)
Title: Re: function to check premission
Post by: JamminR on November 07, 2015, 08:27:08 AM
See also - http://ulyssesmod.net/docs/ (http://ulyssesmod.net/docs/) - ULX was built on our ULib library.
Explanations of the Ulib functions/hooks/commands are desribed there.
Title: Re: function to check premission
Post by: Bite That Apple on November 07, 2015, 11:51:43 AM
See also - http://ulyssesmod.net/docs/ (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.