DarkCoveR / darkrp

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

Not able to make a DarkRP job donator only with the script provided #788

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here's my code :

TEAM_hitman = AddExtraTeam("Hitman", -- Name
Color(238, 99, 99, 255), -- Team color
"models/player/odessa.mdl", -- Player model
[[Donator Only Job!!! Take money to assassinate other players.]],  -- Job 
description
{"keys", "pocket", "weapon_mad_usp"}, -- Weapons
"hitman", -- Command to become the job
2, -- Maximum amount of said job
45, -- Salary
0, -- Admin status
0, -- Has to vote
false, -- Has a license
nil, -- Needs to be job X in order to get this job
function(ply) return ply:GetNWString("EV_UserGroup") == "donator" or 
ply:IsAdmin() end -- The extra check function. Enter nil or nothing to not have 
an extra check
)

This function: function(ply) return ply:GetNWString("EV_UserGroup") == 
"donator" or ply:IsAdmin() end   

Doesn't seems to work with the latest version of evolve ?

I can still be a hitman while being guest rank.

Any help???

Thanks

Original issue reported on code.google.com by dragongr...@gmail.com on 14 Mar 2012 at 8:08

GoogleCodeExporter commented 8 years ago
You should ask the maintainer of Evolve how he refers to the usergroup.
Try ply:GetNWString("usergroup") instead of ply:GetNWString("EV_UserGroup")

Original comment by fpeijnen...@gmail.com on 14 Mar 2012 at 9:18