weeztor / darkrp

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

h #988

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn 
with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("Citizen", {
    color = Color(20, 150, 20, 255),
    model = {
        "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/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"
    },
    description = [[The Citizen is the most basic level of society you can hold
        besides being a hobo.
        You have no specific role in city life.]],
    weapons = {},
    command = "citizen",
    max = 0,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    mayorCanSetSalary = true
})

TEAM_POLICE = AddExtraTeam("Civil Protection", {
    color = Color(25, 25, 170, 255),
    model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
    description = [[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.
        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]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_colt1911", "stunstick", "door_ram", "weaponchecker"},
    command = "cp",
    max = 4,
    salary = 65,
    admin = 0,
    vote = true,
    hasLicense = true,
    help = {
        "Please don't abuse your job",
        "When you arrest someone they are auto transported to jail.",
        "They are auto let out of jail after some time",
        "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
        "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
        "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
        "Type /jailpos to set the jail position"
    }
})

TEAM_GANG = AddExtraTeam("Gangster", {
    color = Color(75, 75, 75, 255),
    model = {
        "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/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"},
    description = [[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.]],
    weapons = {},
    command = "gangster",
    max = 3,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false,
    mayorCanSetSalary = false
})

TEAM_MOB = AddExtraTeam("Mob boss", {
    color = Color(25, 25, 25, 255),
    model = "models/player/gman_high.mdl",
    description = [[The Mobboss is the boss of the criminals in the city.
        With his power he coordinates the gangsters and forms an efficient crime
        organization.
        He has the ability to break into houses by using a lockpick.
        The Mobboss also can unarrest you.]],
    weapons = {"lockpick", "unarrest_stick"},
    command = "mobboss",
    max = 1,
    salary = 60,
    admin = 0,
    vote = false,
    hasLicense = false,
    mayorCanSetSalary = false,
    help = {
        "As the mob boss, you decide what you want the other Gangsters to do.",
        "You get an Unarrest Stick which you can use to break people out of jail.",
        "/agenda <Message> Sets the Gangsters' agenda. Use // to go to the next line."
    }
})

TEAM_GUN = AddExtraTeam("Gun Dealer", {
    color = Color(255, 140, 0, 255),
    model = "models/player/monk.mdl",
    description = [[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]],
    weapons = {},
    command = "gundealer",
    max = 2,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false,
    mayorCanSetSalary = true
})

TEAM_MEDIC = AddExtraTeam("Medic", {
    color = Color(47, 79, 79, 255),
    model = "models/player/kleiner.mdl",
    description = [[With your medical knowledge,
        you heal players to proper
        health.
        Without a medic, people cannot be healed.
        Left click with the Medical Kit to heal other players.
        Right click with the Medical Kit to heal yourself.]],
    weapons = {"med_kit"},
    command = "medic",
    max = 3,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false,
    medic = true,
    mayorCanSetSalary = true
})

TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", {
    color = Color(20, 20, 255, 255),
    model = "models/player/combine_soldier_prisonguard.mdl",
    description = [[The Chief is the leader of the Civil Protection unit.
        Coordinate the police force to enforce law in 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.
        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]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick",  "door_ram", "weaponchecker"},
    command = "chief",
    max = 1,
    salary = 75,
    admin = 0,
    vote = false,
    hasLicense = true,
    chief = true,
    NeedToChangeFrom = TEAM_POLICE,
    help = {
        "Please don't abuse your job",
        "When you arrest someone they are auto transported to jail.",
        "They are auto let out of jail after some time",
        "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
        "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
        "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
        "Type /jailpos to set the jail position"
    }
})

TEAM_MAYOR = AddExtraTeam("Mayor", {
    color = Color(150, 20, 20, 255),
    model = "models/player/breen.mdl",
    description = [[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
    Type /jailpos to set the Jail Position
    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]],
    weapons = {},
    command = "mayor",
    max = 1,
    salary = 150,
    admin = 0,
    vote = true,
    hasLicense = false,
    mayor = true,
    help = {
        "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
        "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect.",
        "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect.",
        "Type /lockdown to initiate a lockdown",
        "Type /unlockdown to end a lockdown",
        "Type /placelaws to place a screen containing the laws.",
        "Type /addlaw and /removelaw to edit the laws."
    }
})

TEAM_HOBO = AddExtraTeam("Hobo", {
    color = Color(80, 45, 0, 255),
    model = "models/player/corpse1.mdl",
    description = [[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]],
    weapons = {"weapon_bugbait", "weapon_angryhobo"},
    command = "hobo",
    max = 5,
    salary = 0,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    hobo = true,
    mayorCanSetSalary = false
})

//ADD CUSTOM TEAMS UNDER THIS LINE:

TEAM_SLAVEWORKER = AddExtraTeam("Slave", {
color = Color(102, 102, 0, 255),
model = {
"models/player/group01/male_01.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
},
description = [[You are a slave people people can pay or you can
be someones slave for free be realistic in prices. 
When you are a slave you MUST do what your master says]],
weapons = {},
command = "slave",
max = 8,
salary = 10,
admin = 0,
vote = false,
hasLicense = false,
mayorCanSetSalary = true
})

TEAM_SWAT = AddExtraTeam("S.W.A.T.", Color(0, 55, 111, 255), 
"models/player/swat.mdl" , [[S.W.A.T. are the special task force of Civil 
Protection.
Assist the cops in catching criminals.
Armed with a Riot Shield that can  
protect other civil protection, the
S.W.A.T. can infiltrate a building
during a search warrant.
Do not fire at innocent people.]], {"m9k_mp5", "stunstick", "arrest_stick", 
"unarrest_stick", "door_ram", "weapon_checker"}, "swat", 2, 100, 0, true, true

TEAM_DONATORJOB  = AddExtraTeam("VIP S.W.A.T.", Color(0, 55, 111, 255), 
"models/player/gasmask.mdl" , [[S.W.A.T. are the special task force of Civil 
Protection.
Heal your fellow S.W.A.T members in battle.]], 
{"med_kit", "stunstick", "arrest_stick", "unarrest_stick", "door_ram", 
"keypad_cracker", "weapon_checker", "m9k_mp5", "mk9_deagle", "riotshield", 
"handcuffs"}, "vipswat", 20, 130, 0, false, 
function(ply) return ply:IsUserGroup "donator" or ply:IsAdmin() end)

TEAM_SWATL = AddExtraTeam("S.W.A.T. Leader", Color(0, 55, 111, 255), 
"models/player/riot.mdl" , [[S.W.A.T. are the special task force of Civil 
Protection.
Lead your S.W.A.T team into battle and stop crime!]], 
{"m9k_mp5", "stunstick", "arrest_stick", "unarrest_stick", "door_ram", 
"keypad_cracker", "weapon_checker", "riotshield", "handcuffs"}, "swatleader", 
1, 150, 0, true, true

TEAM_RAPIST = AddExtraTeam("Rapist", {
color = Color(204,255,255,255),
model = "models/player/mossman.mdl",
description = [[Rape little kids, but dont be seen by the police or you will be 
arrested.]],
weapons = {"weapon_rape"},
command = "rapist",
    max = 3,
    salary = 20,
    admin = 0,
    vote = false,
    hasLicense = false,
function(ply) return ply:IsUserGroup "donator" or ply:IsAdmin() end)
})

TEAM_daughters = AddExtraTeam("Mayor's Daughter(s)", Color(255,0,0,255),
"models/player/alyx.mdl", [[Your are one of 2 daughters
of the Mayors, Watch it, there might be
someone who are after you to control the
Mayor]], {}, "daughters", 2, 80, 0, false)

TEAM_SONS = AddExtraTeam("Mayor's Son(s)", Color(255,0,0,255),
"models/player/barney.mdl", [[Your are one of 2 Sons
of the Mayors, Watch it, there might be
someone who are after you to control the
Mayor]], {}, "sons", 2, 80, 0, false)

TEAM_HITMAN = AddExtraTeam("hitman", Color(123, 62, 62, 255), 
"models/player/leet.mdl", [[You can use your Keypad Cracker and Lockpick to
break into places when a hit is on the target.
You don\'t listen to any other criminals and
don\'t follow
the Mob Boss like the gangsters.
Take Hits from others, and carry them out with
deadly accuracy.]], {"keypad_cracker","weapon_real_cs_awp", "lockpick"}, 
"hitman", 1, 60, 0, true, false, false)

TEAM_ILLEGAL = AddExtraTeam("Black Market Dealer", Color(153,102,51,255), 
"models/player/eli.mdl", [[Sell Illegal items]], {}, "Black", 2, 50, 0, false)

TEAM_BARTENDER = AddExtraTeam("Bartender", Color(70, 255, 70, 255), 
"models/player/Hostage/Hostage_03.mdl" , [[As a Bartender you purchase 
shipments of Alcohol and Water.
You sell Alcohol to intoxicate others.
You also sell Water and cigarettes.]], {}, "bartender", 3, 90, 0, false, false)

TEAM_bankmanager = AddExtraTeam("Banker", Color(102,153,153,255),
"models/player/kleiner.mdl", [[Keep other players money/ printers safe.
Do not use it by your self! Or Take it! If they ask for it, you give them it! 
You  may charge tax to on printers. 
]], {}, "bankmanager", 2, 70, 0, false)

TEAM_thief = AddExtraTeam("Thief", Color(153, 153, 153, 255),
"models/player/arctic.mdl" , [[Thiefs are the best and most
stealthy criminals.
Thiefs are the masters of stealth and their goal
is to not get caught. You are a thief not a murderer."
]], {"keypad_cracker", "lockpick"}, "robber", 6, 50, 0, false)

TEAM_SINGER = AddExtraTeam("Singer", Color(255, 0, 255, 255), 
"models/player/barney.mdl", [[Sing/play songs for money

Allowed to raid: NO]], {"weapon_bugbait"}, "singer", 3, 50, 0, false, false, 
false)

TEAM_GUARD = AddExtraTeam("Guard", Color(255, 51, 51, 255), 
"models/player/odessa.mdl", [[You guard houses, bases and shops. You can charge
money or guard for free

Allowed to raid: NO]], {"m9k_usp","stunstick"}, "guard", 4, 60, 0, false, 
false, false)

TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0,255,0,255),
"models/player/phoenix.mdl", [[Go around the city and ask people if they
want some drugs, you make the prices.
]], {}, "drug", 2, 50, 0, false)

TEAM_ADMIN = AddExtraTeam( "Admin on Duty", Color(0, 255, 255, 255), 
"models/player/combine_super_soldier.mdl", [[You are an admin do what you 
please.]], {"arrest_stick", "pocket", "stunstick", "unarrest_stick", 
"weaponchecker","gmod_tool"}, "trusted", 5, 100, 0,false, false, false, 
function(ply) return ply:IsUserGroup "admin" end)

TEAM_DONATORJOB = AddExtraTeam("Pro Thief", Color(153, 0, 204, 255), 
"models/player/arctic.mdl", [[you are a pro thief use your spiderman swep, 
lockpick
and keypad cracker to break into peoples houses to
thief avoid the law if caught you may be arrested.
you can also use your ninja skills to break people
out of jail.
allowed to raid yes]], {"spiderman's_swep","keypad_cracker", "unarrest_stick", 
"vip_lockpick","m9k_mp7"}, "ninja", 10, 150, 0, false, false, false,
function(ply) return ply:IsUserGroup "donator" or ply:IsAdmin() end)

TEAM_TAXIDRIVER = AddExtraTeam("Taxi Driver", Color(255,204,102,255),
"models/player/Group01/Male_08.mdl", [[Buy a taxi and charge people for a ride.
]], {}, "Taxi", 1, 60, 0, false)

TEAM_CARSTORAGE = AddExtraTeam("Car Storage Owner", Color(153,153,204,255),
"models/player/Group01/Male_09.mdl", [[you store peoples cars for a charge you 
cant keep 
so when the car owner asks for car back you must give it to them.
]], {}, "Car", 2, 60, 0, false)

TEAM_DONATORJOB = AddExtraTeam("Soldier", Color(102,153,0,255),
"models/player/dod_american.mdl", [[Fights for freedom. When an hostage
situation takes place you are called in to try and stop it.
]], {"arrest_stick", "weapon_real_cs_scout", "m9k_m4a1", "door_ram", 
"vip_lockpick", "med_kit",
"stunstick", "unarrest_stick", "weapon_checker", "keypad_cracker"}, "army", 4, 
75, 0,false, false, false, 
function(ply) return ply:IsUserGroup "donator" or ply:IsAdmin() end)

TEAM_DONATORJOB = AddExtraTeam("Terrorist", Color(0, 0, 0, 255), 
"models/player/Phoenix.mdl", [[You are a terrorist you raid bases and
take people hostage. You break into peoples bases if they have
gun you kill them but try to take all hostage.]], 
{"m9k_scar","weapon_real_cs_knife","weapon_real_cs_usp","vip_lockpick","keypad_c
racker"}, "taliban", 4, 70, 0, false, false, false,
function(ply) return ply:IsUserGroup "donator" or ply:IsAdmin() end)

TEAM_KILLER = AddExtraTeam("Assassin", Color(123, 62, 62, 255),
"models/player/guerilla.mdl", [[Your an assasin be stealthy to kill your target 
you are better
than a hitman take your target out silently do not get caught. 
DONT ABUSE OR RANDOM DM!!!!
]], {"keypad_cracker", "vip_lockpick", "ls_sniper", "m9k_honeybadger",}, 
"Killer", 1, 75, 0,false, false, false, 
function(ply) return ply:IsUserGroup "donator" or ply:IsAdmin() end)

TEAM_NEWT = AddExtraTeam("Newtitron", {
color = Color(0, 110, 255, 255),
model = "models/player/Combine_Soldier.mdl",
description = [[You are Newt. Time to take it downtown!]],
weapons = 
{"m9k_ak47","med_kit","lockpick","keypad_cracker","unarrest_stick","stunstick","
weapon_bugbait"},
command = "Newtitron",
max = 1,
salary = 200,
admin = 1,
vote = false,
hasLicense = true,
customCheck = function(ply) return ply:SteamID()=="STEAM_0:1:56454960" end,
})

TEAM_TRUSTED = AddExtraTeam( "Trusted on Duty", Color(255,225,0,255), 
"models/player/combine_super_soldier.mdl", [[You are an admin do what you 
please.]], {"arrest_stick", "pocket", "stunstick", "unarrest_stick", 
"weaponchecker","gmod_tool"}, "trusted", 2, 100, 0,false, false, false, 
function(ply) return ply:IsUserGroup "trusted" or ply:IsAdmin() end)

TEAM_TRUSTED = AddExtraTeam( "Trusted on Duty", Color(255,225,0,255), 
"models/player/combine_super_soldier.mdl", [[You are an admin do what you 
please.]], {"arrest_stick", "pocket", "stunstick", "unarrest_stick", 
"weaponchecker","gmod_tool"}, "trusted", 2, 100, 0,false, false, false, 
function(ply) return ply:IsUserGroup "trusted donator" or ply:IsAdmin() end)

TEAM_HBOY = AddExtraTeam("Hboy1000 on Duty", {
color = Color( 0, 255, 255, 255),
model = "models/guilmon_hd/guilmon_hd.mdl",
description = [[You are Hboy. Time to take it downtown!]],
weapons = {"arrest_stick", "pocket", "stunstick", "unarrest_stick", 
"weaponchecker","gmod_tool","vip_lockpick" },
command = "Hboy",
max = 1,
salary = 200,
admin = 1,
vote = false,
hasLicense = true,
customCheck = function(ply) return ply:SteamID()=="STEAM_0:0:39151712" end,
})

TEAM_admin = AddExtraTeam( "Admin On Duty", Color( 0, 255, 255, 255 ), 
"models/player/combine_super_soldier.mdl", [[You are an admin do what you 
please.]], {"arrest_stick", "pocket", "stunstick", "unarrest_stick", 
"weaponchecker","gmod_tool"}, 'superadmin', 4, 100, 1, 0, true )

/*
--------------------------------------------------------
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, 
TEAM_SWAT, TEAM_SWATM, TEAM_SWATL)
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})

/*
---------------------------------------------------------------------------
HOW TO MAKE A GROUP CHAT
---------------------------------------------------------------------------
Pick one!
GAMEMODE:AddGroupChat(List of team variables separated by comma)

or

GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a 
random player is in one chat group)
This one is for people who know how to script Lua.

*/
GM:AddGroupChat(function(ply) return ply:IsCP() end)
GM:AddGroupChat(TEAM_MOB, TEAM_GANG)

/*---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if 
demoted
---------------------------------------------------------------------------*/
GM.DefaultTeam = TEAM_CITIZEN

/*---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police 
related things
---------------------------------------------------------------------------*/
GM.CivilProtection = {
    [TEAM_POLICE] = true,
    [TEAM_CHIEF] = true,
    [TEAM_MAYOR] = true,
}

/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_HITMAN)
DarkRP.addHitmanTeam(TEAM_KILLER)

Original issue reported on code.google.com by harrison...@gmail.com on 1 Sep 2013 at 6:00

GoogleCodeExporter commented 9 years ago
You're a fucking idiot.

Original comment by silentki...@gmail.com on 23 May 2014 at 10:02