ULX

Author Topic: Restricting DarkRP jobs to certain ULX groups.  (Read 11152 times)

0 Members and 1 Guest are viewing this topic.

Offline Munch

  • Newbie
  • *
  • Posts: 18
  • Karma: 1
Restricting DarkRP jobs to certain ULX groups.
« 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)

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Restricting DarkRP jobs to certain ULX groups.
« Reply #1 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.

Offline Munch

  • Newbie
  • *
  • Posts: 18
  • Karma: 1
Re: Restricting DarkRP jobs to certain ULX groups.
« Reply #2 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.