weeztor / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 1 forks source link

Donator Jobs #874

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
My suggestion is:
Make it easier to make jobs for VIP or Donator and have it work with ULX etc. 

Their currently a function already for it which is ,function(ply) return 
ply:GetNWString("usergroup") == "donator" or ply:IsAdmin() end

But it does not seem to work? Or i am doing something wrong

Why this should be in DarkRP by default and not a third party addon:
Well it makes live easier for people who are new to coding or just new to 
darkrp and want a simpler way of making VIP or Donator jobs etc.

Original issue reported on code.google.com by emind...@hotmail.com on 3 Jul 2012 at 11:32

GoogleCodeExporter commented 9 years ago
What i am currently using.

,function(ply) return ply:CheckGroup("donator") or ply:IsAdmin() end

Original comment by emind...@hotmail.com on 3 Jul 2012 at 11:34

GoogleCodeExporter commented 9 years ago
you're doing something wrong. 

Original comment by fpeijnen...@gmail.com on 3 Jul 2012 at 11:36

GoogleCodeExporter commented 9 years ago
Well this is my code for the job: 

TEAM_SECURITY = AddExtraTeam("Security Guard", Color(0, 255, 255, 255), 
"models/player/odessa.mdl", [[A Security Guard is a hireable sentry that must 
protect people or goods. 
Payments should be organised by the employer depending on what services are 
being completed.]], {"stunstick", "weapon_mad_fists"}, "security", 3, 35, 0, 0, 
false, function(ply) return ply:CheckGroup("donator") or ply:IsAdmin() end)

And i use ULX and i dont have a clue why it wont work?

The ULX Job is also called donator

Original comment by emind...@hotmail.com on 3 Jul 2012 at 11:40

GoogleCodeExporter commented 9 years ago
I don't know either, maybe it's a difference in capital letters. Donator is not 
the same as donator. 

Original comment by fpeijnen...@gmail.com on 3 Jul 2012 at 11:42

GoogleCodeExporter commented 9 years ago
Hmm, ive got the donator both the same and it still is not working. :\

Original comment by emind...@hotmail.com on 3 Jul 2012 at 11:52