General > Developers Corner
Custom permission?
talmera:
So I know you can use the
--- Code: ---ply:checkgroup
--- End code ---
to see if they are in a group or if they are in any higher group in the chain but this can cause problems.
I was wondering several things:
* Is it possible to make a custom permission like "reserved slot access" except other stuff?
* If so is it possible to check in code if this permission is ticked for a person?And
* Also what would be the userallow equiv of:
--- Code: ---ULib.ucl.addUser(realsteamid, allows, denies, ULX_USERGROUP)
--- End code ---
Sorry for the cluster of questions but I thought I would get rid of them in one big swoop :3
Megiddo:
Don't forget to refer to the documentation for questions like these.
Checking to see if a player is allowed something: http://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html#ucl.query
Creating a custom access string: http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.registerAccess
userallow: http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.userAllow
talmera:
--- Quote from: Megiddo on January 28, 2013, 04:37:49 AM ---Don't forget to refer to the documentation for questions like these.
Checking to see if a player is allowed something: http://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html#ucl.query
Creating a custom access string: http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.registerAccess
userallow: http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.userAllow
--- End quote ---
cool thank you, I'm still relatively new to lua but thought I would start out by doing some practical stuff :D
talmera:
one last thing, does xgui have any online documentation like that?
Stickly Man!:
I wish! No, I haven't gotten any documentation up and running for XGUI. But if you need any help on where to get started or have any specific questions, I can hopefully answer them for you!
Navigation
[0] Message Index
[#] Next page
Go to full version