Evolve Admin Mod VIP Jobs HELP!

I am having trouble with setting jobs so that only players that have the VIP rank can be VIP only jobs. I am using Evolve Mod.

Here is the code that I am using. I was told that it is for sure a syntax error, so I am posting it here to see what you can come up with.
Some people said that there are other things I must change in other files, but I am not sure what. Please Help As Soon As Possible.


/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("Citizen", Color(20, 150, 20, 255), {
	"models/player/Group01/Female_01.mdl",
	"models/player/Group01/Female_02.mdl",
	"models/player/Group01/Female_03.mdl",
	"models/player/Group01/Female_04.mdl",
	"models/player/Group01/Female_06.mdl",
	"models/player/Group01/Female_07.mdl",
	"models/player/group01/male_01.mdl",
	"models/player/Group01/Male_02.mdl",
	"models/player/Group01/male_03.mdl",
	"models/player/Group01/Male_04.mdl",
	"models/player/Group01/Male_05.mdl",
	"models/player/Group01/Male_06.mdl",
	"models/player/Group01/Male_07.mdl",
	"models/player/Group01/Male_08.mdl",
	"models/player/Group01/Male_09.mdl"},
[[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {}, "citizen", 0, 0, 0, false, false)

TEAM_POLICE = AddExtraTeam("Civil Protection", Color(25, 25, 170, 255), "models/player/police.mdl", [[The protector of every citizen that lives in the city .
You have the power to arrest criminals and protect innocents.
Hit them with your arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to disobey
the law.
You may only Taser wanted people.
The Battering Ram can break down the door of a criminal with a warrant
for his/her arrest.
The Battering Ram can also unfreeze frozen props(if enabled).
Type /wanted <name> to alert the public to this criminal
OR go to tab and warrant someone by clicking the warrant button]], {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, "cp", 4, 65, 0, true, true)

TEAM_GANG = AddExtraTeam("Gangster", Color(95,95,95,255), {
	"models/player/Group03/Female_01.mdl",
	"models/player/Group03/Female_02.mdl",
	"models/player/Group03/Female_03.mdl",
	"models/player/Group03/Female_04.mdl",
	"models/player/Group03/Female_06.mdl",
	"models/player/Group03/Female_07.mdl",
	"models/player/group03/male_01.mdl",
	"models/player/Group03/Male_02.mdl",
	"models/player/Group03/male_03.mdl",
	"models/player/Group03/Male_04.mdl",
	"models/player/Group03/Male_05.mdl",
	"models/player/Group03/Male_06.mdl",
	"models/player/Group03/Male_07.mdl",
	"models/player/Group03/Male_08.mdl",
	"models/player/Group03/Male_09.mdl"}, [[The lowest person of crime.
A gangster generally works for the Mobboss who runs the crime family.
The Mobboss sets your agenda and you follow it or you might be punished.]], {}, "gangster", 3, 45, 0, false, false)

TEAM_MOB = AddExtraTeam("Mob boss", Color(169,185,184,255), "models/player/gman_high.mdl", [[The Mobboss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficent crime
organization.
He has the ability to break into houses by using a lockpick.
The Mobboss also can unarrest you.]], {"lockpick", "unarrest_stick"}, "mobboss", 1, 60, 0, false, false)

TEAM_GUN = AddExtraTeam("Gun Dealer", Color(255, 140, 0, 255), "models/player/monk.mdl", [[A gun dealer is the only person who can sell guns to other
people.
However, make sure you aren't caught selling guns that are illegal to
the public.
/Buyshipment <name> to Buy a  weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]], {}, "gundealer", 2, 45, 0, false, false)

TEAM_MEDIC = AddExtraTeam("Medic", Color(20,107,142,255), "models/player/kleiner.mdl", [[With your medical knowledge, you heal players to proper
health.
Without a medic, people can not be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]], {"med_kit"}, "medic", 3, 45, 0, false, false)

TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", Color(10,10,255,255), "models/player/combine_soldier_prisonguard.mdl", [[The Chief is the leader of the Civil Protection unit.
Coordinate the police forces to bring law to the city
Hit them with arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to
disobey the law.
You may only Taser wanted people.
The Battering Ram can break down the door of a criminal with a
warrant for his/her arrest.
Type /wanted <name> to alert the public to this criminal
Type /jailpos to set the Jail Position]], {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"}, "chief", 1, 75, 0, false, true, TEAM_POLICE)

TEAM_MAYOR = AddExtraTeam("Mayor", Color(161,20,20,255), "models/player/breen.mdl", [[The Mayor of the city creates laws to serve the greater good
of the people.
If you are the mayor you may create and accept warrants.
Type /wanted <name>  to warrant a player
Edit the laws in your F4 menu.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area
/unlockdown to end a lockdown]], {"door_ram"}, "mayor", 1, 85, 0, true, false/*, {TEAM_CHIEF, TEAM_POLICE}*/)

TEAM_HITMAN = AddExtraTeam("Hitman", Color(0, 0, 0, 255), "models/player/barney.mdl", [[
You are a hired killing machine.
You are to complete the hits, that are in your hit list.
People type /hit <player> to have someone killed.
Do not RDM and say it was a hit, we will know!
Do not give people money to put a hit on someone.
People cannot spam hits!]], {"lockpick", "keypad_cracker", "weapon_deagle2"}, "hitman", 3, 40, 0, 0, false, nil, function(ply) return ply:GetNWString("EV_UserGroup") == "VIP" or ply:IsAdmin() end)
/*
--------------------------------------------------------
HOW TO MAKE AN EXTRA CLASS!!!!
--------------------------------------------------------

You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you're doing!!!
Ok here's how:

To make an extra class do this:
AddExtraTeam( "<NAME OF THE CLASS>", Color(<red>, <Green>, <blue>, 255), "<Player model>" , [[<the description(it can have enters)>]], { "<first extra weapon>","<second extra weapon>", etc...}, "<chat command to become it(WITHOUT THE /!)>", <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>,  true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team)

The real example is here: it's the Hobo:		*/

--VAR without /!!!			The name    the color(what you see in tab)                   the player model					The description
TEAM_HOBO = AddExtraTeam("Hobo", Color(80, 45, 0, 255), "models/player/corpse1.mdl", [[The lowest member of society. All people see you laugh.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or
outside someone else's door]], {"weapon_bugbait"}, "hobo", 5, 0, 0, false)
//No extra weapons           say /hobo to become hobo  Maximum hobo's = 5		his salary = 0 because hobo's don't earn money.          0 = everyone can become hobo ,      false = you don't have to vote to become hobo
// MAKE SURE THAT THERE IS NO / IN THE TEAM NAME OR IN THE TEAM COMMAND:
// TEAM_/DUDE IS WROOOOOONG !!!!!!
// HAVING "/dude" IN THE COMMAND FIELD IS WROOOOOOOONG!!!!
//ADD TEAMS UNDER THIS LINE:
TEAM_SUPERPROTHIEF = AddExtraTeam("Super Pro Thief", Color(0,255,0,255), "models/player/arctic.mdl", [[
You are the crook of the the town. You have a lockpick
and a keypad cracker which you can use to raid.
You can't mug people.
You can't shoot in the nexus.
Unlike the Pro Thief, you can shoot in raids/during robberies.
VIP NEEDED: YES]], {"lockpick", "keypad_cracker"}, "spt", 4, 35, 0, 0, true, nil, function(ply) return ply:GetNWString("EV_UserGroup") == "VIP" or ply:IsAdmin() end)

TEAM_SECURITYGUARD = AddExtraTeam("Security Guard", Color(158,237,255,255), "models/player/odessa.mdl", [[
You protect people, and shops for money.
Minimum Pay Is $70
When someone hires you, type /job <clients name> Security
You can kill people if they are hurting your client.
You must warn people and give them 10 seconds to leave a
shop before you shoot them.
VIP NEEDED: NO]], {"stunstick"}, "security", 3, 50, 0, false)

TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(158,57,255,255), "models/player/soldier_stripped.mdl", [[
You are a drug dealer. People buy drugs from you.
Don't put your prices too high or you will be demoted. 
Dont get caught selling drugs if they are illegal,because
you can go to jail.
VIP NEEDED: NO]], {}, "drug", 3, 40, 0, true, true)

TEAM_BLACKMARKET = AddExtraTeam("Black Market Dealer", Color(158,155,0,255), "models/player/leet.mdl", [[
You are a black market dealer. Black market items from you.
Don't put your prices too high or you will be demoted. 
Dont get caught selling black market items,because
you can go to jail.
VIP NEEDED: NO]], {}, "blackmarket", 3, 40, 0, true)

TEAM_PROTHIEF = AddExtraTeam("Pro Thief", Color(0,173,0,255), "models/player/phoenix.mdl", [[You are a thief.
You have a lockpick which can be used
to raid people and rob them.
You can't shoot during any raids or robberies.
If you are caught, you must run away.
Pro thiefs can't mug.
VIP NEEDED: NO]], {"lockpick"}, "thief", 4, 35, 0, false)


/*
--------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)

WARNING: THE DOOR GROUPS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!


The default door groups, can also be used as examples:
*/
AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Gundealer only", TEAM_GUN)


/*
--------------------------------------------------------
HOW TO MAKE An agenda
--------------------------------------------------------
AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))

WARNING: THE AGENDAS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!

The default agenda's, can also be used as examples:
*/
AddAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})
AddAgenda("Hit List", nil, {TEAM_HITMAN}, true);

If you need anything, know how to do it, or want to chat with me please add me on steam: fil445

** BUMP **

Anyone? I really Need Help

Well you have 2 options to do this.

First you can do a new privilege like “Can use VIP jobs” and use


if ply:EV_HasPrivilege("Can use VIP Jobs) then
 YOUR CODE
end

or there is function like ply:EV_GetRank() it return =“VIP” or something else or ply:IsUserGroup( “VIP” ). It returns true or false

Don’t know it will works.

the last thing what you can try is. ply:GetNWString( “UserGroup” )

Can you add me on steam? I have a few questions. name is: fil445

[editline]31st August 2012[/editline]

How wold I add the Privilege?

I don’t add sry.

You can do new privilege if you write your own plugin for evolve. Otherwise you have to try the 2nd option…

Here, try this bud.

TEAM_HITMAN = AddExtraTeam(“Hitman”, Color(0, 0, 0, 255), “models/player/barney.mdl”, [[You are a hired killing machine.
You are to complete the hits, that are in your hit list.
People type /hit <player> to have someone killed.
Do not RDM and say it was a hit, we will know!
Do not give people money to put a hit on someone.
People cannot spam hits!]], {“lockpick”, “keypad_cracker”, “weapon_deagle2”}, “hitman”, 3, 40, 0, 0, false, nil, function(ply) return ply:GetNWString(“EV_UserGroup”) == “VIP” or ply:IsAdmin() end

You messed up with the parentheses at the end :stuck_out_tongue:
Just copy my code and replace yours with mine.

If that doesn’t work, I can’t help you.
Sorry :[

This should help you out a ton.