Hey,

I am setting up a DarkRP server and there are some things that I am unable to fix.

1. My Durgzmod is being allowed to sold for everyone.
2. Single Sold Weapons won't be sold. (Please note that I can't do single sold weapons by pricesep and noship. Like:
Code:
AddCustomShipment("That Shitty Gun", {
	model = "models/weapons/w_mach_shitgun.mdl",
	entity = "weapon_mad_shitgun",
	price = 235346,
	amount = 10,
	seperate = true,
	pricesep = 1533125,
	noship = true,
	allowed = {TEAM_GUN}
})
because it don't work and make it sell for all jobs.

Here is my addentities.lua file.
Code:
 AddCustomShipment("Desert eagle", {
	model = "models/weapons/w_pist_deagle.mdl",
	entity = "weapon_mad_deagle",
	price = 215,
	amount = 10,
	seperate = true,
	pricesep = 215,
	noship = true,
	allowed = {TEAM_GUN}
})

AddCustomShipment("Fiveseven", {
	model = "models/weapons/w_pist_fiveseven.mdl",
	entity = "weapon_mad_57",
	price = 0,
	amount = 10,
	seperate = true,
	pricesep = 205,
	noship = true,
	allowed = {TEAM_GUN}
})

AddCustomShipment("Glock", {
	model = "models/weapons/w_pist_glock18.mdl",
	entity = "weapon_mad_glock",
	price = 0,
	amount = 10,
	seperate = true,
	pricesep = 160,
	noship = true,
	allowed = {TEAM_GUN}
})

AddCustomShipment("P228", {
	model = "models/weapons/w_pist_p228.mdl",
	entity = "weapon_mad_p228",
	price = 0,
	amount = 10,
	seperate = true,
	pricesep = 185,
	noship = true,
	allowed = {TEAM_GUN}
})

AddCustomShipment("AK47", {
	model = "models/weapons/w_rif_ak47.mdl",
	entity = "weapon_mad_ak47",
	price = 6000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("MP5", {
	model = "models/weapons/w_smg_mp5.mdl",
	entity = "weapon_mad_mp5",
	price = 3500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("M4A1", {
	model = "models/weapons/w_rif_m4a1.mdl",
	entity = "weapon_mad_m4",
	price = 6000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("Mac 10", {
	model = "models/weapons/w_smg_mac10.mdl",
	entity = "weapon_mad_mac10",
	price = 2150,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("Pump shotgun", {
	model = "models/weapons/w_shot_m3super90.mdl",
	entity = "weapon_mad_m3",
	price = 1750,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("Sniper rifle", {
	model = "models/weapons/w_snip_g3sg1.mdl",
	entity = "ls_sniper",
	price = 3750,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddEntity("Drug lab", {
	ent = "drug_lab",
	model = "models/props_lab/crematorcase.mdl",
	price = 400,
	max = 3,
	cmd = "/buydruglab",
	allowed = {TEAM_GANG, TEAM_MOB}
})

AddEntity("Money printer", {
	ent = "money_printer",
	model = "models/props_c17/consolebox01a.mdl",
	price = 1000,
	max = 2,
	cmd = "/buymoneyprinter"
})

AddEntity("Microwave", {
	ent = "microwave",
	model = "models/props/cs_office/microwave.mdl",
	price = 400,
	max = 1,
	cmd = "/buymicrowave",
	allowed = TEAM_COOK
})

AddEntity("Gun lab", {
	ent = "gunlab",
	model = "models/props_c17/TrapPropeller_Engine.mdl",
	price = 500,
	max = 1,
	cmd = "/buygunlab",
	allowed = TEAM_GUN
})

-- ADD CUSTOM SHIPMENTS HERE(next line):
AddCustomShipment("M4A1(Single)", {
	model = "models/weapons/w_rif_m4a1.mdl",
	entity = "weapon_mad_m4",
	price = 800,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})


AddCustomShipment("USP 45(Single)", {
	model = "models/weapons/w_pist_usp.mdl",
	entity = "weapon_mad_usp",
	price = 300,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("USP 45", {
	model = "models/weapons/w_pist_usp.mdl",
	entity = "weapon_mad_usp",
	price = 1000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("TMP(Single)", {
	model = "models/weapons/w_smg_tmp.mdl",
	entity = "weapon_mad_tmp",
	price = 450,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("TMP", {
	model = "models/weapons/w_smg_tmp.mdl",
	entity = "weapon_mad_tmp",
	price = 1600,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("P90(Single)", {
	model = "models/weapons/w_smg_p90.mdl",
	entity = "weapon_mad_p90",
	price = 560,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("P90", {
	model = "models/weapons/w_smg_p90.mdl",
	entity = "weapon_mad_p90",
	price = 2300,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("MP7(Single)", {
	model = "models/weapons/w_smg1.mdl",
	entity = "weapon_mad_mp7",
	price = 560,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("MP7", {
	model = "models/weapons/w_smg1.mdl",
	entity = "weapon_mad_mp7",
	price = 2300,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("357 Magnum(Single)", {
	model = "models/weapons/w_357.mdl",
	entity = "weapon_mad_357",
	price = 600,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("357 Magnum", {
	model = "models/weapons/w_357.mdl",
	entity = "weapon_mad_357",
	price = 2000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("UMP45 (Single)", {
	model = "models/weapons/w_smg_ump45.mdl",
	entity = "weapon_mad_ump",
	price = 560,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("UMP45", {
	model = "models/weapons/w_smg_ump45.mdl",
	entity = "weapon_mad_ump",
	price = 2500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("SPAS12(Single)", {
	model = "models/weapons/w_shotgun.mdl",
	entity = "weapon_mad_spas",
	price = 860,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("SPAS12", {
	model = "models/weapons/w_shotgun.mdl",
	entity = "weapon_mad_spas",
	price = 7500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("XM1014(Single)", {
	model = "models/weapons/w_shot_xm1014.mdl",
	entity = "weapon_mad_xm1014",
	price = 850,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("XM1014", {
	model = "models/weapons/w_shot_xm1014.mdl",
	entity = "weapon_mad_xm1014",
	price = 7500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

AddCustomShipment("M249(Single)", {
	model = "models/weapons/w_mach_m249para.mdl",
	entity = "weapon_mad_m249",
	price = 13000,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("M249", {
	model = "models/weapons/w_mach_m249para.mdl",
	entity = "weapon_mad_m249",
	price = 1300,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("Galil(Single)", {
	model = "models/weapons/w_rif_galil.mdl",
	entity = "weapon_mad_galil",
	price = 800,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("Galil", {
	model = "models/weapons/w_rif_galil.mdl",
	entity = "weapon_mad_galil",
	price = 6500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("G3SG1(Single)", {
	model = "models/weapons/w_snip_g3sg1.mdl",
	entity = "weapon_mad_g3",
	price = 900,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("G3SG1", {
	model = "models/weapons/w_snip_g3sg1.mdl",
	entity = "weapon_mad_g3",
	price = 8000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("Famas(Single)", {
	model = "models/weapons/w_rif_famas.mdl",
	entity = "weapon_mad_famas",
	price = 810,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("Famas", {
	model = "models/weapons/w_rif_famas.mdl",
	entity = "weapon_mad_famas",
	price = 6100,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("SG550(Single)", {
	model = "models/weapons/w_snip_sg550.mdl",
	entity = "weapon_mad_sg550",
	price = 910,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("SG550", {
	model = "models/weapons/w_snip_sg550.mdl",
	entity = "weapon_mad_sg550",
	price = 7100,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("SG552(Single)", {
	model = "models/weapons/w_rif_sg552.mdl",
	entity = "weapon_mad_sg552",
	price = 850,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("SG552", {
	model = "models/weapons/w_rif_sg552.mdl",
	entity = "weapon_mad_sg552",
	price = 7500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("AWP(Single)", {
	model = "models/weapons/w_snip_awp.mdl",
	entity = "weapon_mad_awp",
	price = 1200,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("AWP", {
	model = "models/weapons/w_snip_awp.mdl",
	entity = "weapon_mad_awp",
	price = 10000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("Incendary Grenade(3 pack)", {
	model = "models/weapons/w_eq_flashbang.mdl",
	entity = "weapon_mad_incendiary",
	price = 60000,
	amount = 3,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD}
})

AddCustomShipment("Crossbow(Single)", {
	model = "models/weapons/w_crossbow.mdl",
	entity = "weapon_mad_crossbow",
	price = 1500,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD}
})

AddCustomShipment("Crossbow", {
	model = "models/weapons/w_crossbow.mdl",
	entity = "weapon_mad_crossbow",
	price = 17000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD}
})

AddCustomShipment("SG552(Single)", {
	model = "models/weapons/w_rif_sg552.mdl",
	entity = "weapon_mad_sg552",
	price = 850,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("SG552", {
	model = "models/weapons/w_rif_sg552.mdl",
	entity = "weapon_mad_sg552",
	price = 7500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_HGD}
})

AddCustomShipment("Health Pack(Single)", {
	model = "models/weapons/w_medkit.mdl",
	entity = "weapon_mad_medic",
	price = 300,
	amount = 5,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_MEDIC}
})

AddCustomShipment("Automatic Glock(Single)", {
	model = "models/weapons/w_pist_glock18.mdl",
	entity = "weapon_mad_auto_glock",
	price = 800,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD}
})

AddCustomShipment("Automatic Glock", {
	model = "models/weapons/w_pist_glock18.mdl",
	entity = "weapon_mad_auto_glock",
	price = 7000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD}
})

AddCustomShipment("Knife(Single)", {
	model = "models/weapons/w_knife_t.mdl",
	entity = "weapon_mad_knife",
	price = 300,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD}
})

AddCustomShipment("Knife", {
	model = "models/weapons/w_knife_t.mdl",
	entity = "weapon_mad_knife",
	price = 1000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD}
})

AddCustomShipment("Flashbang (3 pack)", {
	model = "models/weapons/w_eq_flashbang.mdl",
	entity = "weapon_mad_flash",
	price = 7000,
	amount = 3,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD}
})

 
AddEntity("Golden Printer", {
        ent = "money_printer_golden",
        model = "models/props_c17/consolebox01a.mdl",
        price = 1500,
        max = 2,
        cmd = "/buyamethyst"
})
 
AddEntity("Emerald Printer", {
        ent = "money_printer_emerald",
        model = "models/props_c17/consolebox01a.mdl",
        price = 2500,
        max = 2,
        cmd = "/buyemerald"
})
 
AddEntity("Ruby Printer", {
        ent = "money_printer_rubby",
        model = "models/props_c17/consolebox01a.mdl",
        price = 5000,
        max = 2,
        cmd = "/buyruby"
})

AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 900, 10, true, 100, true, {TEAM_DRUGZ})

AddCustomShipment("Cigarette", "models/boxopencigshib.mdl", "durgz_cigarette", 250, 10, true, 30, true, {TEAM_DRUGZ, TEAM_BAR})

AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 800, 10, true, 85, true, {TEAM_DRUGZ})

AddCustomShipment("Asprin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 100, 1, true, 100, true, {TEAM_DRUGZ})

AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 600, 10, true, 75, true, {TEAM_DRUGZ})

AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 500, 10, true, 55, true, {TEAM_DRUGZ})

AddCustomShipment("Mushroom", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 1000, 10, true, 120, true, {TEAM_DRUGZ})

AddCustomShipment("Water", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 200, 10, true, 25, true, {TEAM_DRUGZ})
Sorry that its quite large.

If there is any command/code that I can do to resolve these errors. Please tell me.

[EDITLINE]

I just realised why durgzmod is being sold to everyone, thats solved. [table="width: 1"]
[tr]
[td]TICK![/td]
[/tr]
[/table]

(User was banned for this post ("Missed the DarkRP thread" - garry))