Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Munch on January 24, 2012, 05:06:05 PM

Title: Restricting DarkRP jobs to certain ULX groups.
Post by: Munch on January 24, 2012, 05:06:05 PM
Over the past few months I've been using alittle bit of pre-made text I found on the net to make certain jobs "donator only" meaning if you want to become "mutant" you have to be in the group donator or Admin.

Code: [Select]
function(ply) return ply:GetUserGroup() == "donator" or ply:IsAdmin() end)
But now I have a second rank, above donator and requires the job: "mutant" and "swatleader".
How would I go about making the rank (V.I.P) have access to mutant+swatleader?

I have tried:
Code: [Select]
function(ply) return ply:GetUserGroup() == "donator" or "v.i.p" or ply:IsAdmin() end)
Title: Re: Restricting DarkRP jobs to certain ULX groups.
Post by: Aaron113 on January 24, 2012, 06:02:47 PM
Code: [Select]
function(ply) return ply:GetUserGroup() == "donator" or ply:GetUserGroup() == "v.i.p" or ply:IsAdmin() end)
Is that what you're looking for?  You'd do the same thing you have done with donator.
Title: Re: Restricting DarkRP jobs to certain ULX groups.
Post by: Munch on January 25, 2012, 01:47:00 AM
Code: [Select]
function(ply) return ply:GetUserGroup() == "donator" or ply:GetUserGroup() == "v.i.p" or ply:IsAdmin() end)
Is that what you're looking for?  You'd do the same thing you have done with donator.

I have also tried this, I'm sure I did!

I'll give it a try later when I get home and post back.