SRCDS Steam group


DarkRP- Addentities, mine doesnt work can figure it out.
#1
Hi guys,

Im working on a DarkRP server and I want to add some shipments to sell for the Gun Dealer and Black Market Dealer but it doesnt work.
The F4 Menu gets bugged and I cant figure out what the problem is.
Ill put my Addentities.lua in the code and also my Shared.lua maybe there is a problem in it too.
Help would be really appreciated Big Grin

Code:
AddCustomShipment("Knife (Crossbow/Knife)", "models/weapons/w_knife_t.mdl", "weapon_mad_knife", 1500, 10, false, 150, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("Glock (Pistol)", "models/weapons/w_pist_glock18.mdl", "weapon_mad_glock", 2350, 10, false, 235, false, TEAM_GUN)
AddCustomShipment("P228 (Pistol)", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2350, 10, false, 235, false, TEAM_GUN)
AddCustomShipment("Five-Seven (Pistol)", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 2350, 10, false, 235, false, TEAM_GUN)
AddCustomShipment("USP (Pistol)", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2500, 10, false, 250, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("Deagle (Pistol)", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 3500, 10, false, 350, false, TEAM_GUN)
AddCustomShipment("Dual Elites (Pistol)", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 3500, 10, false, 350, false, TEAM_GUN)
AddCustomShipment("Mac-10 (SMG)", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 6500, 10, false, 650, false, TEAM_GUN)
AddCustomShipment("MP5 (SMG)", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 6500, 10, false, 650, false, TEAM_GUN)
AddCustomShipment("UMP45 (SMG)", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 6500, 10, false, 650, false, TEAM_GUN)
AddCustomShipment("P90 (SMG)", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 6500, 10, false, 650, false, TEAM_GUN)
AddCustomShipment("Shotgun (Shotgun)", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 8500, 10, false, 850, false, TEAM_GUN)
AddCustomShipment("AK47 (Rifle)", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 8000, 10, false, 800, false, TEAM_GUN)
AddCustomShipment("M4A1 Colt.(Rifle)", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 9750, 10, false, 975, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("Galil (Rifle)", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 8500, 10, false, 850, false, TEAM_GUN)
AddCustomShipment("Steyr Aug (Rifle)", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 8500, 10, false, 850, false, TEAM_GUN)
AddCustomShipment("Crossbow (Crossbow/Knife)", "models/weapons/w_crossbow.mdl", "weapon_mad_crossbow", 11000, 10, false, 1100, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("AWP (Rifle)", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 13000, 10, false, 1300, false, TEAM_GUN)
AddCustomShipment("M249 (Rifle)", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 15000, 10, false, 1500, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("C4 (Explosive)", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 375000, 5, false, 75000, false, TEAM_BLACKMARKETDEALER)

AddEntity("Drug lab", "drug_lab", "models/props_lab/crematorcase.mdl", 400, 3, "/buydruglab", {TEAM_GANG, TEAM_MOB})
AddEntity("Money printer", "money_printer", "models/props_c17/consolebox01a.mdl", 1000, 2, "/buymoneyprinter")
AddEntity("Homemade Money printer", "homemademoney_printer", "models/props_c17/consolebox05a.mdl", 500, 2, "/buyhomemademoneyprinter")
AddEntity("Microwave", "microwave", "models/props/cs_office/microwave.mdl", 400, 1, "/buymicrowave", TEAM_COOK)
AddEntity("Gun lab", "gunlab", "models/props_c17/TrapPropeller_Engine.mdl", 500, 1, "/buygunlab", TEAM_GUN)

/*
How to add custom vehicles:
FIRST
go ingame, type rp_getvehicles for available vehicles!
then:
AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Model of the vehicle>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
Examples:
AddCustomVehicle("Jeep", "models/buggy.mdl", 100 )
AddCustomVehicle("Airboat", "models/airboat.mdl", 600, {TEAM_GUN})
AddCustomVehicle("Airboat", "models/airboat.mdl", 600, {TEAM_GUN, TEAM_MEDIC})

Add those lines under your custom shipments. At the bottom of this file or in data/CustomShipments.txt

HOW TO ADD CUSTOM SHIPMENTS:
AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buy only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)

Notes:
MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
CLASSNAME OF THE WEAPON
there are half-life 2 weapons you can add:
weapon_pistol
weapon_smg1
weapon_ar2
weapon_rpg
weapon_crowbar
weapon_physgun
weapon_357
weapon_crossbow
weapon_slam
weapon_bugbait
weapon_frag
weapon_physcannon
weapon_shotgun
gmod_tool

But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
This means the classname is weapon_posessor

YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!

true/false: Can the weapon be sold seperately?(with /buy name) if you want yes then say true else say no

the price of sold seperate is the price it is when you do /buy name. Of course you only have to fill this in when sold seperate is true.


EXAMPLES OF CUSTOM SHIPMENTS(remove the // to activate it): */

//AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})

--EXAMPLE OF AN ENTITY(in this case a medkit)
--AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
--EXAMPLE OF A BOUNCY BALL:           NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
--AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
-- ADD CUSTOM SHIPMENTS HERE(next line):

Code:
/*--------------------------------------------------------
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, 45, 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.
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", 3, 65, 0, true, true)

TEAM_SWAT = AddExtraTeam("S.W.A.T", Color(137, 133, 95, 255), "models/player/swat.mdl", [[You are a S.W.A.T,
you take orders from police.]], {"arrest_stick", "unarrest_stick", "weapon_mad_m4", "weapon_mad_usp", "riotshield", "stunstick", "door_ram", "weaponchecker"}, "swat", 1, 80, 0, true, true)

TEAM_SWATSNIPER = AddExtraTeam("S.W.A.T Sniper", Color(137, 133, 95, 255), "models/player/swat.mdl", [[You are a S.W.A.T Sniper,
you take orders from police.]], {"arrest_stick", "unarrest_stick", "weapon_mad_awp", "weapon_mad_usp", "stunstick", "door_ram", "weaponchecker"}, "swatsniper", 1, 80, 0, false, true, TEAM_SWAT)

TEAM_SWATCHIEF = AddExtraTeam("S.W.A.T Chief", Color(198, 196, 95, 255), "models/player/urban.mdl", [[You are a S.W.A.T Chief,
you take orders from police. You also have lead of other Swats]], {"arrest_stick", "unarrest_stick", "weapon_mad_m3", "weapon_mad_m4", "weapon_mad_deagle", "riotshield", "stunstick", "door_ram", "weaponchecker"}, "swatchief", 1, 100, 0, false, true, TEAM_SWAT)

TEAM_GANG = AddExtraTeam("Gangster", Color(75, 75, 75, 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(25, 25, 25, 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(47, 79, 79, 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_COOK = AddExtraTeam("Cook", Color(238, 99, 99, 255), "models/player/mossman.mdl", [[As a cook, it is your responsibility to feed the other members
of your city.
You can spawn a microwave and sell the food you make:
/Buymicrowave]], {}, "cook", 2, 45, 0, 0, false)

TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", Color(20, 20, 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.
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(150, 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
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]], {}, "mayor", 1, 85, 0, true, false/*, {TEAM_CHIEF, TEAM_POLICE}*/)

TEAM_HITMAN = AddExtraTeam("Hitman", Color(255, 253, 100, 255), "models/player/guerilla.mdl", [[You are a hitman, you kill people for money.
You must advert Hit Accepted,
Hit completed/Hit failed before and after you hit.]], {"weapon_mad_knife"}, "hitman", 2, 60, 0, false, false)

TEAM_THIEF = AddExtraTeam("Thief", Color(217, 217, 85, 255), "models/player/arctic.mdl", [[You are a thief,
rob people and raid other peoples houses and steal their stuff.]], {"lockpick", "keypad_cracker"}, "thief", 3, 45, 0, false, false)

TEAM_GUARD = AddExtraTeam("Guard", Color(106, 181, 87, 255), "models/odessa.mdl", [[
Guard other peoples houses with their permission.]], {}, "guard", 2, 55, 0, false, false)

TEAM_BLACKMARKETDEALER = AddExtraTeam("Black Market Dealer", Color(153, 92, 66, 255), "models/player/leet.mdl", [[
You sell illegal stuff to other people.]], {}, "blackmarketdealer", 1, 45, 0, false, false)

TEAM_DRUGDEALER = AddExtraTeam("Drug Dealer", Color(33, 145, 57, 255), "models/Eli.mdl", [[
You sell drugs to other people.]], {}, "drugdealer", 1, 40, 0, false, false)

TEAM_EXPLOSIVEDEALER = AddExtraTeam("Explosive Dealer", Color(174, 155, 79, 255), "models/Barney.mdl", [[
You sell explosives to other people.]], {}, "explosivedealer", 1, 45, 0, false, false)
/*
--------------------------------------------------------
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:









/*
--------------------------------------------------------
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})
Reply
#2
Pls read the FULL .lua file next time:
Code:
AddCustomShipment("Knife (Crossbow/Knife)", "models/weapons/w_knife_t.mdl", "weapon_mad_knife", 1500, 10, false, 150, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("Glock (Pistol)", "models/weapons/w_pist_glock18.mdl", "weapon_mad_glock", 2350, 10, false, 235, false, TEAM_GUN)
AddCustomShipment("P228 (Pistol)", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2350, 10, false, 235, false, TEAM_GUN)
AddCustomShipment("Five-Seven (Pistol)", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 2350, 10, false, 235, false, TEAM_GUN)
AddCustomShipment("USP (Pistol)", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2500, 10, false, 250, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("Deagle (Pistol)", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 3500, 10, false, 350, false, TEAM_GUN)


AddEntity("Drug lab", "drug_lab", "models/props_lab/crematorcase.mdl", 400, 3, "/buydruglab", {TEAM_GANG, TEAM_MOB})
AddEntity("Money printer", "money_printer", "models/props_c17/consolebox01a.mdl", 1000, 2, "/buymoneyprinter")
AddEntity("Microwave", "microwave", "models/props/cs_office/microwave.mdl", 400, 1, "/buymicrowave", TEAM_COOK)
AddEntity("Gun lab", "gunlab", "models/props_c17/TrapPropeller_Engine.mdl", 500, 1, "/buygunlab", TEAM_GUN)

/*
How to add custom vehicles:
FIRST
go ingame, type rp_getvehicles for available vehicles!
then:
AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Model of the vehicle>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
Examples:
AddCustomVehicle("Jeep", "models/buggy.mdl", 100 )
AddCustomVehicle("Airboat", "models/airboat.mdl", 600, {TEAM_GUN})
AddCustomVehicle("Airboat", "models/airboat.mdl", 600, {TEAM_GUN, TEAM_MEDIC})

Add those lines under your custom shipments. At the bottom of this file or in data/CustomShipments.txt

HOW TO ADD CUSTOM SHIPMENTS:
AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buy only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)

Notes:
MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
CLASSNAME OF THE WEAPON
there are half-life 2 weapons you can add:
weapon_pistol
weapon_smg1
weapon_ar2
weapon_rpg
weapon_crowbar
weapon_physgun
weapon_357
weapon_crossbow
weapon_slam
weapon_bugbait
weapon_frag
weapon_physcannon
weapon_shotgun
gmod_tool

But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
This means the classname is weapon_posessor

YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!

true/false: Can the weapon be sold seperately?(with /buy name) if you want yes then say true else say no

the price of sold seperate is the price it is when you do /buy name. Of course you only have to fill this in when sold seperate is true.


EXAMPLES OF CUSTOM SHIPMENTS(remove the // to activate it): */

//AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})

--EXAMPLE OF AN ENTITY(in this case a medkit)
--AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
--EXAMPLE OF A BOUNCY BALL:           NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
--AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
-- ADD CUSTOM SHIPMENTS HERE(next line):

AddCustomShipment("Dual Elites (Pistol)", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 3500, 10, false, 350, false, TEAM_GUN)
AddCustomShipment("Mac-10 (SMG)", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 6500, 10, false, 650, false, TEAM_GUN)
AddCustomShipment("MP5 (SMG)", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 6500, 10, false, 650, false, TEAM_GUN)
AddCustomShipment("UMP45 (SMG)", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 6500, 10, false, 650, false, TEAM_GUN)
AddCustomShipment("P90 (SMG)", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 6500, 10, false, 650, false, TEAM_GUN)
AddCustomShipment("Shotgun (Shotgun)", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 8500, 10, false, 850, false, TEAM_GUN)
AddCustomShipment("AK47 (Rifle)", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 8000, 10, false, 800, false, TEAM_GUN)
AddCustomShipment("M4A1 Colt.(Rifle)", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 9750, 10, false, 975, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("Galil (Rifle)", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 8500, 10, false, 850, false, TEAM_GUN)
AddCustomShipment("Steyr Aug (Rifle)", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 8500, 10, false, 850, false, TEAM_GUN)
AddCustomShipment("Crossbow (Crossbow/Knife)", "models/weapons/w_crossbow.mdl", "weapon_mad_crossbow", 11000, 10, false, 1100, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("AWP (Rifle)", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 13000, 10, false, 1300, false, TEAM_GUN)
AddCustomShipment("M249 (Rifle)", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 15000, 10, false, 1500, false, TEAM_BLACKMARKETDEALER)
AddCustomShipment("C4 (Explosive)", "models/weapons/w_c4_planted.mdl", "weapon_mad_c4", 375000, 5, false, 75000, false, TEAM_BLACKMARKETDEALER)

AddEntity("Homemade Money printer", "homemademoney_printer", "models/props_c17/consolebox05a.mdl", 500, 2, "/buyhomemademoneyprinter")

Code:
/*--------------------------------------------------------
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, 45, 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.
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", 3, 65, 0, true, true)

TEAM_SWAT = AddExtraTeam("S.W.A.T", Color(137, 133, 95, 255), "models/player/swat.mdl", [[You are a S.W.A.T,
you take orders from police.]], {"arrest_stick", "unarrest_stick", "weapon_mad_m4", "weapon_mad_usp", "riotshield", "stunstick", "door_ram", "weaponchecker"}, "swat", 1, 80, 0, true, true)

TEAM_SWATSNIPER = AddExtraTeam("S.W.A.T Sniper", Color(137, 133, 95, 255), "models/player/swat.mdl", [[You are a S.W.A.T Sniper,
you take orders from police.]], {"arrest_stick", "unarrest_stick", "weapon_mad_awp", "weapon_mad_usp", "stunstick", "door_ram", "weaponchecker"}, "swatsniper", 1, 80, 0, false, true, TEAM_SWAT)

TEAM_SWATCHIEF = AddExtraTeam("S.W.A.T Chief", Color(198, 196, 95, 255), "models/player/urban.mdl", [[You are a S.W.A.T Chief,
you take orders from police. You also have lead of other Swats]], {"arrest_stick", "unarrest_stick", "weapon_mad_m3", "weapon_mad_m4", "weapon_mad_deagle", "riotshield", "stunstick", "door_ram", "weaponchecker"}, "swatchief", 1, 100, 0, false, true, TEAM_SWAT)

TEAM_GANG = AddExtraTeam("Gangster", Color(75, 75, 75, 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(25, 25, 25, 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(47, 79, 79, 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_COOK = AddExtraTeam("Cook", Color(238, 99, 99, 255), "models/player/mossman.mdl", [[As a cook, it is your responsibility to feed the other members
of your city.
You can spawn a microwave and sell the food you make:
/Buymicrowave]], {}, "cook", 2, 45, 0, 0, false)

TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", Color(20, 20, 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.
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(150, 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
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]], {}, "mayor", 1, 85, 0, true, false/*, {TEAM_CHIEF, TEAM_POLICE}*/)

/*
--------------------------------------------------------
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_HITMAN = AddExtraTeam("Hitman", Color(255, 253, 100, 255), "models/player/guerilla.mdl", [[You are a hitman, you kill people for money.
You must advert Hit Accepted,
Hit completed/Hit failed before and after you hit.]], {"weapon_mad_knife"}, "hitman", 2, 60, 0, false, false)

TEAM_THIEF = AddExtraTeam("Thief", Color(217, 217, 85, 255), "models/player/arctic.mdl", [[You are a thief,
rob people and raid other peoples houses and steal their stuff.]], {"lockpick", "keypad_cracker"}, "thief", 3, 45, 0, false, false)

TEAM_GUARD = AddExtraTeam("Guard", Color(106, 181, 87, 255), "models/odessa.mdl", [[
Guard other peoples houses with their permission.]], {}, "guard", 2, 55, 0, false, false)

TEAM_BLACKMARKETDEALER = AddExtraTeam("Black Market Dealer", Color(153, 92, 66, 255), "models/player/leet.mdl", [[
You sell illegal stuff to other people.]], {}, "blackmarketdealer", 1, 45, 0, false, false)

TEAM_DRUGDEALER = AddExtraTeam("Drug Dealer", Color(33, 145, 57, 255), "models/Eli.mdl", [[
You sell drugs to other people.]], {}, "drugdealer", 1, 40, 0, false, false)

TEAM_EXPLOSIVEDEALER = AddExtraTeam("Explosive Dealer", Color(174, 155, 79, 255), "models/Barney.mdl", [[
You sell explosives to other people.]], {}, "explosivedealer", 1, 45, 0, false, 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})

This should do it and if not put your own jobs at the end of the file and copy the door groups and agendas under it.
Reply
#3
Ok quick 2 part question

what is the code for gun lab and can I set the guns to a different gun then the hand gun???

Second is I have a cook and Id like to know if you know where and how to add a hunger system for the server

little bonus question Im making a bartender so is there a way to sell beer besides using a third party like the barrel?
Reply
#4
Quote: the end of the file and copy the door groups and agendas under it.

Also is it possible to change the original jobs to something else or do I need to delete them and make a whole new thing

example im making a pirate darkrp and id like to change the mayor to El Presidenta

and the police to military giving the feeling of a self governed isle. Thank you for your time btw.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)