Well I got the drugs installed for him and they work but they came in shipments so I made it so they sold only in singles but that made it so any class Police / mayor ect. can spawn the drugs themselves. I just need to make it sso only the drug dealer can spawn the drugs.
Here's what the coding is.
TEAM_DRUG = AddExtraTeam("Drug Dealer", {
color = Color(153, 0, 153, 255),
model = "models/Humans/Group01/Male_04.mdl",
description = [[You're a drug dealer. You sell anonymous drugs.]],
weapons = {},
command = "drug",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
Things he sells.
AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 1, 1, true, 500, true, {TEAM_DRUG})
AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 1, 10, true, 200, true, {TEAM_DRUG})
AddCustomShipment("Lsd", "models/smile/smile.mdl", "durgz_lsd", 1, 10, true, 350, true, {TEAM_DRUG})
AddCustomShipment("Mushroom", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 1, 10, true, 300, true, {TEAM_DRUG})
AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 1, 10, true, 400, true, {TEAM_DRUG})
Post your whole addentities.lua file and wrap it in [lua] tags.
[editline]14th August 2013[/editline]
AddEntity("LSD", {
ent = "durgz_lsd",
model = "models/smile/smile.mdl",
price = 400,
max = 100,
cmd = "/lsd",
allowed = TEAM_DRUG
})
That is my code.
Sorry, you need to Log In to post a reply to this thread.