[DARKRP] Everyone can buy WEAPONS!! (HELP PLZ) !! :'(

Hello guys!

In my darkrp server everyone can buy weapons…
I want only: TEAM_GUN that can buy weapons…

here is my addentities.lua:

[lua]
DarkRP.createShipment(“AK-47”, {
model = “models/weapons/w_ak47.mdl”,
entity = “fas2_ak47”,
price = 1000,
amount = 1,
seperate = true,
pricesep = 500,
noship = true,
allowed = TEAM_GUN
})

DarkRP.createShipment(“AK-74”, {
model = “models/weapons/w_rif_ak47.mdl”,
entity = “fas2_74”,
price = 1000,
amount = 1,
seperate = true,
pricesep = 500,
noship = true,
allowed = TEAM_GUN
})

DarkRP.createShipment(“AN-94”, {
model = “models/weapons/world/rifles/an94.mdl”,
entity = “fas2_an94”,
price = 1000,
amount = 1,
seperate = true,
pricesep = 500,
noship = true,
allowed = TEAM_GUN
})
[/lua]

Put it in shipments.lua instead of addentities.lua and see if that does anything

Try



allowed = {TEAM_GUN}

And please do not create new thread for stuff like this. Use http://forum.facepunch.com/showthread.php?t=1411111&p=46202647#post46202647


(User was permabanned for this post ("alt of perma'd user and backseat mod" - Orkel))