Problème vente entité et armes

  • Initiateur de la discussion Sandbox
  • Date de début
  • Initiateur de la discussion
Sandbox

Sandbox

Geek suprême
Messages
127
Score réaction
8
Points
115
Bonsoir , j'ai un soucis de vente d'armes et d'entités je souhaiterai ,
Mettre mettre une commande pour que tel job puis acheté tel entité
Et j'ai un problème de gun dealer tout le monde peut acheter une arme , pourtant j'ai mis un allowed = "TEAM_GUN";
Code :
DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
price = 2500,
amount = 1,
seperate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN}
})

Je souhaiterai rajouter mettre aussi une commande a ce code pour que il y est qu'un job qui puisse le vendre :
Code :
AddEntity( "Camera", {
ent = "rprotect_camera",
model = "models/tools/camera/camera.mdl",
price = 500,
max = 6,
cmd = "buycamera"
} )

EDIT : Je souhaiterai aussi rajouter une commande dans mon elitef4menu je souhaiterai que se ne soit pas le maire qui donne des licences d'armes mais le commisaire
Merci d'avance !
 
Nardox

Nardox

Psychopathe
Messages
1 143
Score réaction
240
Points
250
/ ASSAULT GUNS //
DarkRP.createShipment("Acr", "models/weapons/w_masada_acr.mdl", "m9k_acr", 14000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("AMD 65", "models/weapons/w_amd_65.mdl", "m9k_amd65", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("FN FAL", "models/weapons/w_fn_fal.mdl", "m9k_fal", 14000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("M14", "models/weapons/w_snip_m14sp.mdl", "m9k_m14sp", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("M16 Scoped", "models/weapons/w_dmg_m16ag.mdl", "m9k_m16a4_acog", 15250, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("HK 16", "models/weapons/w_hk_416.mdl", "m9k_m416", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Scar", "models/weapons/w_fn_scar_h.mdl", "m9k_scar", 26000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("TAR-21", "models/weapons/w_imi_tar21.mdl", "m9k_tar21", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Val", "models/weapons/w_dmg_vally.mdl", "m9k_val", 15575, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("SR-3M Vikhr", "models/weapons/w_dmg_vikhr.mdl", "m9k_vikhr", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Winchester 73", "models/weapons/w_winchester_1873.mdl", "m9k_winchester73", 13500, 1, false, nil, false, {TEAM_GUN})

DarkRP.createShipment("1887 Winchester", "models/weapons/w_winchester_1887.mdl", "m9k_1887winchester", 40000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Double Barrel", "models/weapons/w_double_barrel_shotgun.mdl", "m9k_dbarrel", 20000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Jack Hammer", "models/weapons/w_pancor_jackhammer.mdl", "m9k_jackhammer", 28000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Benelli M3", "models/weapons/w_benelli_m3.mdl", "m9k_m3", 14500, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Ithaca M37", "models/weapons/w_ithaca_m37.mdl", "m9k_ithacam37", 23000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Mossberg", "models/weapons/w_mossberg_590.mdl", "m9k_mossberg590", 33000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Remington 870", "models/weapons/w_remington_870_tact.mdl", "m9k_remington870", 12500, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("1897 Winchester", "models/weapons/w_winchester_1897_trench.mdl", "m9k_1897winchester", 24000, 1, false, nil, false, {TEAM_GUNE})
DarkRP.createShipment("XM114", "models/weapons/w_shot_xm114.mdl", "weapon_mad_xm114", 19000, 1, false, nil, false, {TEAM_GUN})

DarkRP.createShipment("SVT 40 Single", "models/weapons/w_svt_40.mdl", "m9k_svt40", 11600, 1, false, 0, false, {TEAM_GUN})
DarkRP.createShipment("Dragunov SVU", "models/weapons/w_dragunov_svu.mdl", "m9k_svu", 18000, 1, false, 0, false, {TEAM_GUN})
DarkRP.createShipment("SVD Dragunov", "models/weapons/w_svd_dragunov.mdl", "m9k_dragunov", 18500, 1, false, 123, false, {TEAM_GUN})
DarkRP.createShipment("Intervention", "models/weapons/v_snp_int.mdl", "m9k_intervention", 12500, 1, false, 0, false, {TEAM_GUN})
DarkRP.createShipment("PSG-1", "models/weapons/w_hk_psg1.mdl", "m9k_psg1", 7000, 1, false, 0, false, {TEAM_GUN})
DarkRP.createShipment("AW 50", "models/weapons/w_acc_int_aw50.mdl", "m9k_aw50", 12000, 1, false, 123, false, {TEAM_GUN})
DarkRP.createShipment("M24", "models/weapons/w_snip_m24_6.mdl", "m9k_m24", 17000, 1, false, 123, false, {TEAM_GUN})
DarkRP.createShipment("Remington 7615P", "models/weapons/w_remington_7615p.mdl", "m9k_remington7615p", 11000, 1, false, 123, false, {TEAM_GUN})
DarkRP.createShipment("Thompson Condender", "models/weapons/w_g2_contender.mdl", "m9k_contender", 15000, 1, false,
[/CODE]
 
  • Initiateur de la discussion
Sandbox

Sandbox

Geek suprême
Messages
127
Score réaction
8
Points
115
Nardox à dit:
/ ASSAULT GUNS //
DarkRP.createShipment("Acr", "models/weapons/w_masada_acr.mdl", "m9k_acr", 14000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("AMD 65", "models/weapons/w_amd_65.mdl", "m9k_amd65", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("FN FAL", "models/weapons/w_fn_fal.mdl", "m9k_fal", 14000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("M14", "models/weapons/w_snip_m14sp.mdl", "m9k_m14sp", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("M16 Scoped", "models/weapons/w_dmg_m16ag.mdl", "m9k_m16a4_acog", 15250, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("HK 16", "models/weapons/w_hk_416.mdl", "m9k_m416", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Scar", "models/weapons/w_fn_scar_h.mdl", "m9k_scar", 26000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("TAR-21", "models/weapons/w_imi_tar21.mdl", "m9k_tar21", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Val", "models/weapons/w_dmg_vally.mdl", "m9k_val", 15575, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("SR-3M Vikhr", "models/weapons/w_dmg_vikhr.mdl", "m9k_vikhr", 15000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Winchester 73", "models/weapons/w_winchester_1873.mdl", "m9k_winchester73", 13500, 1, false, nil, false, {TEAM_GUN})

DarkRP.createShipment("1887 Winchester", "models/weapons/w_winchester_1887.mdl", "m9k_1887winchester", 40000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Double Barrel", "models/weapons/w_double_barrel_shotgun.mdl", "m9k_dbarrel", 20000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Jack Hammer", "models/weapons/w_pancor_jackhammer.mdl", "m9k_jackhammer", 28000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Benelli M3", "models/weapons/w_benelli_m3.mdl", "m9k_m3", 14500, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Ithaca M37", "models/weapons/w_ithaca_m37.mdl", "m9k_ithacam37", 23000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Mossberg", "models/weapons/w_mossberg_590.mdl", "m9k_mossberg590", 33000, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("Remington 870", "models/weapons/w_remington_870_tact.mdl", "m9k_remington870", 12500, 1, false, nil, false, {TEAM_GUN})
DarkRP.createShipment("1897 Winchester", "models/weapons/w_winchester_1897_trench.mdl", "m9k_1897winchester", 24000, 1, false, nil, false, {TEAM_GUNE})
DarkRP.createShipment("XM114", "models/weapons/w_shot_xm114.mdl", "weapon_mad_xm114", 19000, 1, false, nil, false, {TEAM_GUN})

DarkRP.createShipment("SVT 40 Single", "models/weapons/w_svt_40.mdl", "m9k_svt40", 11600, 1, false, 0, false, {TEAM_GUN})
DarkRP.createShipment("Dragunov SVU", "models/weapons/w_dragunov_svu.mdl", "m9k_svu", 18000, 1, false, 0, false, {TEAM_GUN})
DarkRP.createShipment("SVD Dragunov", "models/weapons/w_svd_dragunov.mdl", "m9k_dragunov", 18500, 1, false, 123, false, {TEAM_GUN})
DarkRP.createShipment("Intervention", "models/weapons/v_snp_int.mdl", "m9k_intervention", 12500, 1, false, 0, false, {TEAM_GUN})
DarkRP.createShipment("PSG-1", "models/weapons/w_hk_psg1.mdl", "m9k_psg1", 7000, 1, false, 0, false, {TEAM_GUN})
DarkRP.createShipment("AW 50", "models/weapons/w_acc_int_aw50.mdl", "m9k_aw50", 12000, 1, false, 123, false, {TEAM_GUN})
DarkRP.createShipment("M24", "models/weapons/w_snip_m24_6.mdl", "m9k_m24", 17000, 1, false, 123, false, {TEAM_GUN})
DarkRP.createShipment("Remington 7615P", "models/weapons/w_remington_7615p.mdl", "m9k_remington7615p", 11000, 1, false, 123, false, {TEAM_GUN})
DarkRP.createShipment("Thompson Condender", "models/weapons/w_g2_contender.mdl", "m9k_contender", 15000, 1, false,
[/CODE]
Que dois-je faire de tout cela ? Le mettre dans mon dossier ?
 
Nardox

Nardox

Psychopathe
Messages
1 143
Score réaction
240
Points
250
Oui shipments.lua
 
  • Initiateur de la discussion
Sandbox

Sandbox

Geek suprême
Messages
127
Score réaction
8
Points
115
QUelqu'un aurait ducoup la solution pour mes entités ? svp
 
Nardox

Nardox

Psychopathe
Messages
1 143
Score réaction
240
Points
250
Code:
AddEntity( "Camera", {
ent = "rprotect_camera",
model = "models/tools/camera/camera.mdl",
price = 500,
max = 6,
cmd = "buycamera"
allowed = {TATEAM}
} )
 
Discord d'entraide
Rejoignz-nous sur Discord