General > Developers Corner
Restricting ULX Access to DarkRP Job
Wolfy_:
Hello,
I am just wondering whether it is at all possible to restrict ULX access, for my mods & admins, by jobs.
For example, an admin cannot use any of his administrative commands unless he is the job, 'TEAM_ADMIN'
Thank you very much for your help!
JamminR:
ULX has no way to stop admin commands based on teams/jobs/roles/, only groups.
You can prevent RP commands based on jobss -Per DarkRP wiki
http://wiki.darkrp.com/index.php/Donator_Job_configuration#Restrict_certain_jobs_to_donator.2Fvip.2Fwhatever_usergroup
Caustic Soda-Senpai:
Well technically, in theory, you could run an if statement to determine if the calling player is in a specific DarkRP Team.
Wolfy_:
Definitely, but where would be the best place to put this if statement, after each command? Or is there a more efficient way of doing it?
Caustic Soda-Senpai:
It would have to be in each command you want to lock to the jobs.
Navigation
[0] Message Index
[#] Next page
Go to full version