[QUOTE=Pepsi305;23103288]lol thanks
i hope it works.[/QUOTE]
If it doesn't I'll eat my hat.
Where do I find the DarkRP convars without using the F4 Admin tab?
Drake you might as well start eating you hat because it still wont work :(
[QUOTE=Dino Penis;23103533]Where do I find the DarkRP convars without using the F4 Admin tab?[/QUOTE]
rp_commands
[editline]05:25PM[/editline]
[QUOTE=Pepsi305;23103665]Drake you might as well start eating you hat because it still wont work :([/QUOTE]
-eats hat-
Right, copy and paste your FULL addentities.lua and shared.lua as they are right now.
Addentities.LUA:
[lua]AddEntity("Drug lab", "drug_lab", "models/props_lab/crematorcase.mdl", 400, 3, "/buydruglab", TEAM_DRUG)
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("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_real_cs_ak47", 3000, 10, false, 0, false, {TEAM_GUN, TEAM_DRUG})
AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_real_cs_m4a1", 3000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_real_cs_famas", 2750, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_real_cs_awp", 5000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_real_cs_scout", 4500, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_real_cs_ump_45", 1500, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_real_cs_p90", 3000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_real_cs_tmp", 3000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_real_cs_mp5a5", 2800, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Mac10", "models/weapons/w_smg_mac10.mdl", "weapon_real_cs_mac10", 1500, 10, false, 0, false, {TEAM_GUN, TEAM_DRUG})
AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_real_cs_xm1014", 3000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_real_cs_pumpshotgun", 2500, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_real_cs_grenade", 5000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_real_cs_desert_eagle", 2500, 10, true, 250, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_real_cs_usp", 2200, 10, true, 240, false, {TEAM_GUN, TEAM_DRUG})
AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_real_cs_p228", 1700, 10, true, 220, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", "weapon_real_cs_glock18", 1500, 10, true, 210, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("FiveSeven", "models/weapons/w_pist_fiveseven.mdl", "weapon_real_cs_five-seven", 1900, 10, true, 200, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Knife", "models/weapons/w_knife_t.mdl", "weapon_real_cs_knife", 2000, 10, true, 200, false, {TEAM_GUN, TEAM_DRUG})
AddCustomShipment("Alcohol", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 1000, 20, true, 50, false, {TEAM_DRUG})
AddCustomShipment("Aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 750, 10, true, 110, false, {TEAM_DRUG})
AddCustomShipment("Cigarette", "models/boxopencigshib.mdl", "durgz_cigarette", 400, 20, true, 50, false, {TEAM_DRUG})
AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 2000, 10, true, 400, false, {TEAM_DRUG})
AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 500, 10, true, 50, false, {TEAM_DRUG})
AddCustomShipment("Lsd", "models/drug_mod/alcohol_can.mdl", "durgz_lsd", 1500, 10, true, 300, false, {TEAM_DRUG})
AddCustomShipment("Mushroom", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 1000, 10, true, 200, false, {TEAM_DRUG})
AddCustomShipment("Water", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 200, 20, true, 50, false, {TEAM_DRUG})
AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 500, 10, true, 50, {TEAM_DRUG})[/lua]
shared.lua
[lua] /*--------------------------------------------------------
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, 35, 0, false, false)
TEAM_POLICE = AddExtraTeam("Civil Protection", Color(25, 25, 170, 255), "models/player/police.mdl", [[The protector of every cit
[noparse][lua]Put your code here[/lua][/noparse]
[QUOTE=Drakehawke;23103264]Falco lies! xD, your teams do have problems;
You've put an extra true/false at the end when DarkRP is looking for a table there, not a boolean.
Here's the working ones:
[code]
TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"models/weapons/w_pist_fiveseven.mdl"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"models/weapons/w_crowbar.mdl","models/weapons/w_c4.mdl"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"models/weapons/w_knife_t.mdl","models/weapons/w_snip_scout.mdl"}, "hitman", 1, 75, 0, true, false)[/code][/QUOTE]
Those extra bools are added by my classmaker in replacement of the prior teams part (I discovered that an empty table would break the whole thing). Has anyone noticed the model paths in the weapons field? The values there would need to be the entity names, such as weapon_crowbar.
[QUOTE=deadeye536;23108173]Those extra bools are added by my classmaker in replacement of the prior teams part (I discovered that an empty table would break the whole thing). Has anyone noticed the model paths in the weapons field? The values there would need to be the entity names, such as weapon_crowbar.[/QUOTE]
Cannot. Beleive. I. Missed. That.
And I just don't put a table on the end at all and it works lol.
So what do i have to Change/add/remove?
Where you choose what weapons each class has, you need to use the name of the folder where the weapon is, for the CSS Realistic Weapons, go to addons/CSS Realistic Weapons/lua/weapons, and you'll see the list of weapons to use. For example the knife is "weapon_real_cs_knife".
do i have to do that for the shipments too?
if you want too you can add me on steam as Pepsi305
here is what i added to the jobs:
[lua]
TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"addons\CSS Weapon Model Pack\models\weapons/models/weapons/w_pist_fiveseven.mdl"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"models/weapons/w_crowbar.mdl","addons\Keypad Cracker\lua\weapons\keypad_cracker/models/weapons/w_c4.mdl"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"addons\CSS Weapon Model Pack\models\weapons/models/weapons/w_knife_t.mdl","addons\CSS Weapon Model Pack\models\weapons/models/weapons/w_snip_scout.mdl"}, "hitman", 1, 75, 0, true, false)
[/lua]
with the keypad cracker for the thief there wasn't a model folder it was all on a LUA file so would that work? because the LUA file was in the /weapons folder
Failing horridly at converting the SQLite database over to MySQL, I always get:
[code]
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''key' TEXT NOT NULL, 'value' INTEGER NOT NULL, PRIMARY KEY('key'))' at line 1 [/code]
[editline]09:50PM[/editline]
[QUOTE=Pepsi305;23110247]do i have to do that for the shipments too?
if you want too you can add me on steam as Pepsi305[/QUOTE]
No
hey drake i edited my comment before and it has my fixes in it. Can you review it and tell me if it's correct now?
[QUOTE=Pepsi305;23110247]do i have to do that for the shipments too?
if you want too you can add me on steam as Pepsi305
here is what i added to the jobs:
[lua]
TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"addons\CSS Weapon Model Pack\models\weapons/models/weapons/w_pist_fiveseven.mdl"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"models/weapons/w_crowbar.mdl","addons\Keypad Cracker\lua\weapons\keypad_cracker/models/weapons/w_c4.mdl"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"addons\CSS Weapon Model Pack\models\weapons/models/weapons/w_knife_t.mdl","addons\CSS Weapon Model Pack\models\weapons/models/weapons/w_snip_scout.mdl"}, "hitman", 1, 75, 0, true, false)
[/lua]
with the keypad cracker for the thief there wasn't a model folder it was all on a LUA file so would that work? because the LUA file was in the /weapons folder[/QUOTE]
Nooooo, you need to be looking for the [b]folders[/b] in addons/CSS Realistic Weapons/[b]lua[/b]/weapons/, and when you add it to the job code all you need is the folder name, not the rest of the directory. eg for the knife, all you would put is:
"weapon_real_cs_knife"
oh ok thanks
here i redid it:
[lua]
TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a fiveseven to
protect yourself.]], {"w_pist_fiveseven.mdl"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"w_crowbar.mdl","w_c4.mdl"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"w_knife_t.mdl","w_snip_scout.mdl"}, "hitman", 1, 75, 0, true, false)
[/lua]
is this correct now?
[QUOTE=Pepsi305;23110782]oh ok thanks
here i redid it:
[lua]
TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a fiveseven to
protect yourself.]], {"w_pist_fiveseven.mdl"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"w_crowbar.mdl","w_c4.mdl"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"w_knife_t.mdl","w_snip_scout.mdl"}, "hitman", 1, 75, 0, true, false)
[/lua]
is this correct now?[/QUOTE]
No, lol, right, go to addons/CSS Realistic Weapons/[u][b]lua[/b][/u]/weapons, and then list all the folders that are there. ([b][u]NOT[/b][/u] addons/CSS Realistic Weapons/[u][b]models[/b][/u]/weapons)
[QUOTE=Pepsi305;23110247]do i have to do that for the shipments too?
if you want too you can add me on steam as Pepsi305
here is what i added to the jobs:
[lua]
TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"addons\CSS Weapon Model Pack\models\weapons/models/weapons/w_pist_fiveseven.mdl"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"models/weapons/w_crowbar.mdl","addons\Keypad Cracker\lua\weapons\keypad_cracker/models/weapons/w_c4.mdl"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"addons\CSS Weapon Model Pack\models\weapons/models/weapons/w_knife_t.mdl","addons\CSS Weapon Model Pack\models\weapons/models/weapons/w_snip_scout.mdl"}, "hitman", 1, 75, 0, true, false)
[/lua]
with the keypad cracker for the thief there wasn't a model folder it was all on a LUA file so would that work? because the LUA file was in the /weapons folder[/QUOTE]
Not quite yet,try
[lua]TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"weapon_real_cs_five-seven"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"weapon_crowbar","keypad_cracker"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"weapon_real_cs_scout","weapon_real_cs_scout"}, "hitman", 1, 75, 0, true, false)[/lua]
[QUOTE=deadeye536;23111029]Not quite yet,try
[lua]TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"weapon_real_cs_five-seven"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"weapon_crowbar","keypad_cracker"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"weapon_real_cs_scout","weapon_real_cs_scout"}, "hitman", 1, 75, 0, true, false)[/lua][/QUOTE]
I think for the crowbar he meant lockpick lol
[QUOTE=Drakehawke;23111228]I think for the crowbar he meant lockpick lol[/QUOTE]
Okay then,
[lua]TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"weapon_real_cs_five-seven"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"lockpick","keypad_cracker"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"weapon_real_cs_scout","weapon_real_cs_scout"}, "hitman", 1, 75, 0, true, false)[/lua]
How would I make a class only for certain groups. Like moderator.......
ok well i tried deadeyes script and it still did not work :( should i just put the Real CSS weapons in the DarkRP weapon folder?
[QUOTE=Pepsi305;23122086]ok well i tried deadeyes script and it still did not work :( should i just put the Real CSS weapons in the DarkRP weapon folder?[/QUOTE]
Install the CSS weapon pack normally, in addons.
also, "doesn't work" is [b]never[/b] enough information.
I'm making the weapon checker just like the lockpick. When you want to take weapons, it will take time. I hate people who randomly check other people.
Sorry FPtje.. but when i said it doesn't work i meant that i still cannot switch jobs but i can buy stuff from the Buy menu... Is that helpful?
And drake i went into my Lua/weapons folder and then it showed alot of different folders. When i opened the five seven folder for example i got found a Lua script. THe script for the five seven was:
[lua]
-- Read the weapon_real_base if you really want to know what each action does
if (SERVER) then
AddCSLuaFile("shared.lua")
SWEP.HoldType = "pistol"
end
if (CLIENT) then
SWEP.PrintName = "FN FIVE-SEVEN"
SWEP.ViewModelFOV = 70
SWEP.Slot = 1
SWEP.SlotPos = 1
SWEP.IconLetter = "u"
killicon.AddFont("weapon_real_cs_five-seven", "CSKillIcons", SWEP.IconLetter, Color( 255, 80, 0, 255 ))
end
SWEP.EjectDelay = 0.05
SWEP.Instructions = "Damage: 10% \nRecoil: 6% \nPrecision: 89% \nType: Semi-Automatic"
SWEP.Base = "weapon_real_base_pistol"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.ViewModel = "models/weapons/v_pist_fiveseven.mdl"
SWEP.WorldModel = "models/weapons/w_pist_fiveseven.mdl"
SWEP.Primary.Sound = Sound("Weapon_FiveSeven.Single")
SWEP.Primary.Recoil = 0.6
SWEP.Primary.Damage = 10
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.011
SWEP.Primary.ClipSize = 20
SWEP.Primary.Delay = 0.13
SWEP.Primary.DefaultClip = 20
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "pistol"
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = "none"
SWEP.IronSightsPos = Vector (4.5282, -4.7373, 3.3248)
SWEP.IronSightsAng = Vector (-0.4139, 0.0182, 0)
[/lua]
[QUOTE=Pepsi305;23122429]Sorry FPtje.. but when i said it doesn't work i meant that i still cannot switch jobs but i can buy stuff from the Buy menu... Is that helpful?
And drake i went into my Lua/weapons folder and then it showed alot of different folders. When i opened the five seven folder for example i got found a Lua script. THe script for the five seven was:
[/QUOTE]
"[B]it showed alot of different folders[/B]"
What those folders are called are the things you need to put in to each one.
For example the FiveSeven folder was called weapon_real_cs_five-seven, right?
Then weapon_real_cs_five-seven is what you put into the team creation.
Also, do you get any Lua errors relating to DarkRP?
[editline]12:25PM[/editline]
Try this:
[lua]TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"weapon_real_cs_five-seven"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"lockpick","keypad_cracker"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"weapon_real_cs_scout"}, "hitman", 1, 75, 0, true, false)[/lua]
the file names are:
weapon_real_base
weapon_real_base_pistol
weapon_real_base_reddot
weapon_real_base_rifle
weapon_real_base_smg
weapon_real_base_snip
weapon_real_base_special_aim
weapon_real_cs_admin_weapon
weapon_real_cs_ak47
weapon_real_cs_aug
weapon_real_cs_awp
weapon_real_cs_desert_eagle
weapon_real_cs_elites
weapon_real_cs_famas
weapon_real_cs_five-seven
weapon_real_cs_flash
weapon_real_cs_g3sg1
weapon_real_cs_galil
weapon_real_cs_glock18
weapon_real_cs_grenade
weapon_real_cs_knife
weapon_real_cs_m4a1
weapon_real_cs_m249
weapon_real_cs_mac10
weapon_real_cs_mp5a5
weapon_real_cs_p90
weapon_real_cs_p228
weapon_real_cs_pumpshotgun
weapon_real_cs_tmp
weapon_real_cs_ump_45
weapon_real_cs_usp
weapon_real_cs_xm1014
those are all the file names.
they are all located in:
garrysmod\garrysmod\addons\CSS Realistic Weapons 4.0\lua\weapons
What do you think of this layout for FAdmin server settings? (what you see when you press the screwdriver at the top left)
[img_thumb]http://img340.imageshack.us/img340/6831/fadminserverlayout.png[/img_thumb]
Note: It's a sketch
BTW when i start up my server i get an error: ill post it in a little bit i gotta find it :( lost it
[lua]
maxplayers set to 128
Unknown command "sv_allow_wait_command"
Steam config directory: c:\program files\steam\steamapps\pepsi305\garrysmod\platform\config
Parent cvar in server.dll not allowed (sv_scriptenforcer_initialkick)
Garry's Mod client.dll Build #087 [Jul 5 2010 10:12:48]
maxplayers set to 1
Unknown command "cl_thirdperson"
Unknown command "hud_showemptyweaponslots"
Unknown command "sv_backspeed"
GetAllManifestFiles: Unable to load maplist.txt
maxplayers set to 8
Network: IP 192.168.2.107, mode MP, dedicated No, ports 27015 SV / 27005 CL
SOLID_VPHYSICS static prop with no vphysics model! (models/props_lab/corkboard001.mdl)
Lua initialized (Lua 5.1)
addons\adv duplicator\lua\autorun\beam_netvars.lua:909: unfinished string near '" )'
======== RD BeamLib v0.5 Installed ========
======== Installing Table (De)Serialiser Module | ver: 1.4 ========
lua\includes\extensions\string.lua:33: bad argument #1 to 'find' (string expected, got nil)
======== Beam NetVars Lib v0.71 Installed ========
ERROR! Module 'zlib_b64' not found!
==== Advanced Duplicator v.1.72 shared module installed! ====
Added EntCheckHook: AdvDupe_NoItems
Added EntCheckHook: AdvDupe_DisallowedClasses
Added EntCheckHook: AdvDupe_ModelCheck
==== Advanced Duplicator v.1.85 server module installed! ====
Registering gamemode 'sandbox' derived from 'base'
gamemodes\darkrp\gamemode\shared.lua:141: '=' expected near 'TO'
-- Error PARSING CLIENTSIDE file -------------------------
- File: DARKRP\gamemode/shared.lua
----------------------------------------------------------
gamemodes\darkrp\gamemode\shared.lua:141: '=' expected near 'TO'
Error! Variable "$envmapcontrast" is multiply defined in material "katharsmodels/syringe_out/syringe_body"!
Registering gamemode 'DARKRP' derived from 'sandbox'
ScriptEnforce is disabled
Loading Wire Tools
Compressing lua files into data pack..
Datapack wasn't compressed!
Compression complete. 1042 files. (2.094s)
Executing listen server config file
Couldn't find scene 'scenes/npc/female01/question21.vcd'
Couldn't find scene 'scenes/npc/female01/question31.vcd'
Couldn't find scene 'scenes/npc/female01/answer35.vcd'
Couldn't find scene 'scenes/npc/female01/gordead_ques03a.vcd'
Couldn't find scene 'scenes/npc/female01/gordead_ques03b.vcd'
Couldn't find scene 'scenes/npc/female01/nice.vcd'
Couldn't find scene 'scenes/npc/male01/nice01.vcd'
Couldn't find scene 'scenes/npc/male01/nice02.vcd'
Couldn't find scene 'scenes/npc/female01/oneforme.vcd'
Couldn't find scene 'scenes/npc/Barney/ba_run.vcd'
Couldn't find scene 'scenes/npc/Barney/ba_ohshit.vcd'
Couldn't find scene 'scenes/npc/Barney/ba_thisisbad.vcd'
Couldn't find scene 'scenes/npc/Barney/ba_headcrabs.vcd'
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
exec: couldn't exec listenserver.cfg
[L] DarkRP 2.4.1
Map: RP_Downtown_V2
Players: 1 / 8
Build: 4231
Server Number: 1
Connection to Steam servers successful.
No pure server whitelist. sv_pure = 0
Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/militia_hdrrt)
Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/militia_hdrbk)
Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/militia_hdrlf)
Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/militia_hdrft)
Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/militia_hdrup)
Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/militia_hdrdn)
VAC secure mode is activated.
InitFastCopy: only 51% fast props. Bug?
Decompressing data pack into virtual file system..
Data pack loaded: 1042 files. (8.186s)
Lua initialized (Lua 5.1)
======== RD BeamLib v0.5 Installed ========
======== Installing Table (De)Serialiser Module | ver: 1.4 ========
lua\includes\extensions\string.lua:33: bad argument #1 to 'find' (string expected, got nil)
======== Beam NetVars Lib v0.71 Installed ========
loading materials
loading material: cable/rope_icon
loading material: cable/cable2
loading material: cable/xbeam
loading material: cable/redlaser
loading material: cable/blue_elec
loading material: cable/physbeam
loading material: cable/hydra
loading material: arrowire/arrowire
loading material: arrowire/arrowire2
=== Loading Wire Model Packs ===
Loaded: PHXWireModels.txt
Loaded: default.txt
Loaded: expression2.txt
Loaded: cheeze_buttons2.txt
Loaded: wire_model_pack_1.txt
Loaded: wire_model_pack_1plus.txt
Adding Cheeze's Buttons Pack
Adding various Buttons from HL2 and Portal
Jaanus' Thruster Pack
Beer's Model pack
addons\adv duplicator\lua\autorun\beam_netvars.lua:909: unfinished string near '" )'
RunConsoleCommand blocked - sent before player spawned (sv_tags)
ERROR! Module 'zlib_b64' not found!
==== Advanced Duplicator v.1.72 shared module installed! ====
==== Advanced Duplicator v.1.741 client module installed! ====
Registering gamemode 'sandbox' derived from 'base'
gamemodes\darkrp\gamemode\shared.lua:141: '=' expected near 'TO'
Registering gamemode 'DARKRP' derived from 'sandbox'
Loading Wire Tools
--- Missing Vgui material texturemissing
--- Missing Vgui material weapons/c4_sg_killicon
--- Missing Vgui material materials/weapons/rpgicon
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/nova_props.txt
0, (*Entries*), (*7*), (*8*),
KeyValues Error: RecursiveLoadFromBuffer: got NULL key in file settings/spawnlist/rt_screen_pack.txt
53, Entries, 5,
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/rt_screen_pack.txt
53, Entries, (*5*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/rt_screen_pack.txt
53, (*Entries*), (*5*),
ERROR: Trying to derive entity sent_rg_bullet from non existant entity base_point!
Sending 1250 'User Info' ConVars to server (cl_spewuserinfoconvars to see)
==starting timer for sending RDBeam data to Player [1][[FL:RP] pepsi305]
ERROR: GAMEMODE:'PlayerLoadout' Failed: gamemodes\darkrp\gamemode\sv_gamemode_functions.lua:594: attempt to index field '?' (a nil value)
AdvDupeShared: Server Compression: false
Redownloading all lightmaps
Hook 'checksleeping' Failed: weapons\tranq\shared.lua:290: bad argument #1 to 'pairs' (table expected, got nil)
Unknown command: maxgundealers
==sending RDbeam data to Player [1][[FL:RP] pepsi305]
[/lua]
[QUOTE=FPtje;23124256]What do you think of this layout for FAdmin server settings? (what you see when you press the screwdriver at the top left)
[img_thumb]http://img340.imageshack.us/img340/6831/fadminserverlayout.png[/img_thumb]
Note: It's a sketch[/QUOTE]
Looks good, by the way, your handwriting is shocking XD
[editline]09:23PM[/editline]
[quote=pepsi305;23125058]btw when i start up my server i get an error: Ill post it in a little bit i gotta find it :( lost it[/quote]
I know what's wrong now. I'll post the fixed shared.lua in a second..
[editline]09:37PM[/editline]
[lua]
/*--------------------------------------------------------
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, 35, 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", 4, 65, 0, true, true)
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_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, 50, 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, 60, 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, 55, 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, 55, 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, 150, 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_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"models/weapons/w_pist_fiveseven.mdl"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and yo
[QUOTE=Drakehawke;23132543]Looks good, by the way, your handwriting is shocking XD
[editline]09:23PM[/editline]
I know what's wrong now. I'll post the fixed shared.lua in a second..
[editline]09:37PM[/editline]
-luasnip-[/QUOTE]
Hey, you forgot the weapons fix we talked about earlier!
[lua]
/*--------------------------------------------------------
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, 35, 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", 4, 65, 0, true, true)
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_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, 50, 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, 60, 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, 55, 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, 55, 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, 150, 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_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"weapon_real_cs_five-seven"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"lockpick","keypad_cracker"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddEx
Fixed again.
[lua]
/*--------------------------------------------------------
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, 35, 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", 4, 65, 0, true, true)
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_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, 50, 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, 60, 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, 55, 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, 55, 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, 150, 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_DRUG = AddExtraTeam("Drug Dealer", Color(0, 102, 51, 255), "models/player/artic.mdl", [[You are a neighborhood drug dealer. You need to
sell your drugs to the citizens for money and run
away from the cops. You will get a five seven to
protect yourself.]], {"weapon_real_cs_five-seven"}, "drug", 2, 65, 0, false, false)
TEAM_THIEF = AddExtraTeam("Thief", Color(0, 0, 0, 255), "models/player/odessa.mdl", [[You lost your stuff and your rich girlfriend. You
want to get back at society. The best way you
could think of is stealing other peoples stuff! Go
around the city and steal all the stuff you can!
Just don't get caught]], {"lockpick","keypad_cracker"}, "thief", 2, 50, 0, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 102, 0, 255), "models/player/leet.mdl", [[Your a lone killer. You wanted to take revenge on
the city but didn't know who to start with. So
you started asking people who you should kill and
that just stuck. You always charged your customers
$100-$300, and you still do. Go and get hits and
kill people silently, or publicly.]], {"weapon_real_cs_scout"}, "hitman", 1, 75, 0, true, false)
/*
-----------
Sorry, you need to Log In to post a reply to this thread.