i made a add entites script and everyone can buy gundealer items and such any one know how to fix this?
AddCustomShipment("Desert Eagle", "models/weapons/w_pist_deagle.mdl", "weapon_real_cs_desert_eagle", 215, 10, true, 500, true, {TEAM_GUN})
AddCustomShipment("Fiveseven", "models/weapons/w_pist_fiveseven.mdl", "weapon_real_cs_five-seven", 0, 10, true, 300, true, {TEAM_GUN})
AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", "weapon_real_cs_glock18", 0, 10, true, 225, true, {TEAM_GUN})
AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_real_cs_p228", 0, 10, true, 250, true, {TEAM_GUN})
AddCustomShipment("CZ52", "models/weapons/w_pist_cz52.mdl", "kermite_pist_cz52", 0, 10, true, 350, true, {TEAM_GUN})
AddCustomShipment("Citizen Defense Magnum", "models/weapons/w_pist_mateba.mdl", "kermite_pist_mateba", 0, 10, true, 600, true, {TEAM_GUN})
AddCustomShipment("Pernac", "models/weapons/w_pist_ot33pemac.mdl", "kermite_pist_ot33pemac", 0, 10, true, 375, true, {TEAM_GUN})
AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_real_cs_ak47", 7500, 10, false, 245, false, {TEAM_GUN})
AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_real_cs_mp5a5", 6500, 10, false, 220, false, {TEAM_GUN})
AddCustomShipment("M4", "models/weapons/w_rif_m4a1.mdl", "weapon_real_cs_m4a1", 7500, 10, false, 245, false, {TEAM_GUN})
AddCustomShipment("Mac 10", "models/weapons/w_smg_mac10.mdl", "weapon_real_cs_mac10", 4500, 10, false, 120, false, {TEAM_GUN})
AddCustomShipment("Pump Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_pumpshotgun2", 4800, 10, false, 275, false, {TEAM_GUN})
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>, <Price of the vehicle>, <OPTIONAL jobs that cana buy the vehicle>)
Examples:
AddCustomVehicle("Jeep", "models/buggy.mdl", 7000, {TEAM_CAR})
AddCustomVehicle("Airboat", "models/airboat.mdl" 6550, {TEAM_CAR})
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 canb buy the shipment, OPTIONAL: the model of the shipment)
Notes:
MODEL: you canc go to Q and then props tab at the top left then search for w_ and you cand find all world models of the weapons!
CLASSNAME OF THE WEAPON
there are half-life 2 weapons you cane 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 canf 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
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):
AddCustomVehicle("Airboat", "models/airboat.mdl", 5500, {TEAM_CAR})
AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 1200, 10, true, 240, true, {TEAM_DRUG})
AddCustomShipment("Asprin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 1000, 10, true, 200, true, {TEAM_DRUG, TEAM_MEDIC})
AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 1500, 10, true, 250, true, {TEAM_DRUG})
AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 750, 10, true, 150, true, {TEAM_DRUG})
AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 1000, 10, true, 300, true, {TEAM_DRUG})
AddCustomShipment("Water Bottle", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 50, 10, true, 10, true, {TEAM_DRUG})
AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_real_cs_p90", 6750, 10, false, 320, false, {TEAM_GUN})
AddCustomShipment("Aug", "models/weapons/w_rif_aug.mdl", "weapon_real_cs_aug", 8000, 10, false, 275, false, {TEAM_GUN})
AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_real_cs_famas", 6250, 10, false, 220, false, {TEAM_GUN})
AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_real_cs_galil", 8000, 10, false, 245, false, {TEAM_GUN})
AddCustomShipment("sg552", "models/weapons/w_rif_sg552.mdl", "weapon_real_cs_sg552", 9000, 10, false, 260, false, {TEAM_GUN})
AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_real_cs_tmp", 4750, 10, false, 250, false, {TEAM_GUN})
AddCustomShipment("Lockpick", "models/weapons/w_crowbar.mdl", "lockpick", 0, 0, true, 750, true, {TEAM_BLACK})
AddCustomShipment("Keypad Cracker", "models/weapons/w_c4.mdl", "keypad_cracker", 0, 0, true, 1000, true, {TEAM_BLACK})
AddCustomShipment("Unarrest Stick", "models/weapons/w_stunbaton.mdl", "unarrest_stick", 0, 0, true, 500, true, {TEAM_BLACK})
AddCustomVehicle("Jeep", "models/buggy.mdl", 7000, {TEAM_CAR})
Sorry, you need to Log In to post a reply to this thread.