General > Developers Corner
Nil
roastchicken:
Using a global variable is 99.9% not the correct way of doing this. Unless you absolutely need to, you should avoid using global variables.
Why are you only assigning ply_name and rank when should_revoke is true? If you're only going to use it in the second if statement, just move the variable assignment into that if statement.
OpticPotatOS:
--- Quote from: dankpepe on May 18, 2016, 11:40:56 AM ---Thank you so much, getting rid of local fixed it. Do you know if there is anyway I can give a certain user all the permissions from a group?
--- End quote ---
Make a group that inherits from your preferred group, or use ulx userallow on the player for all the commands necessary.
iViscosity:
--- Quote from: dankpepe on May 18, 2016, 11:40:56 AM ---Thank you so much, getting rid of local fixed it. Do you know if there is anyway I can give a certain user all the permissions from a group?
--- End quote ---
"ulx addgroup <group> <inherit>". The "inherit" will make it so that the new "group" that you are making will have everything in the group that it's inheriting from, plus whatever you add onto it.
dankpepe:
I'm looking to give a user permissions, not create a whole group. There is ucl.userAllow(id,access,revoke,deny) where you can set access to a table of values. I was wondering if there was a way to easily find/make a table of permissions a group has, so I can add those to a person.
iViscosity:
I don't know if it's in the config files anywhere, but there is a command "ulx userallow" or "ulx userallowid" but I'm not familiar with any lists of permissons, sorry.
You can use those two in-game.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version