Français Solved Comment créer plusieurs magasins pour une borne d'armurerie de la police

  • Auteur de la discussion Auteur de la discussion Aerrrr
  • Date de début Date de début

Aerrrr

User
11/1/22
58
1
8
450
Bonjour je voudrais faire plusieurs shop sur la même borne pour l’armurerie de la police du genre ADS GPX ETC
 
Solution
Pour les Vêtement tu as ce style:

[CODE title="Config_Clothing.hpp"]class cop {
title = "STR_Shops_C_Police";
conditions = "license_cop_police";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "B_tenue_police_1", "", 350, "call life_coplevel >= 1" },
{ "B_tenue_police_2", "", 550, "call life_coplevel >= 1" },
{ "B_tenue_police_4", "", 1250, "call life_coplevel >= 1" }
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "beret_police_1", "", 25, "call life_coplevel >= 5" },
{ "casquette_police_3", "", 150, "" },
{ "casquette_police_1", "", 150, "" }
};
goggles[] = {...
Hello! Tu peux mettre plusieurs actions les unes à la suite des autres dans l'init de l'objet, par exemple :
Code:
this addAction["Shop 1",life_fnc_virt_menu,"shop_1",0,false,false,"",' (playerSide isEqualTo west) '];
this addAction["Shop 2",life_fnc_virt_menu,"shop_2",0,false,false,"",' (playerSide isEqualTo west) '];
 
Du coup si j’ai bien compris dans les fichier sur serveur je doit mettre les shop_1 etc avec ce que je veut dedans ?
 
Pour les shops d'objets virtuel il faut modifier ton Config_vItems.hpp pour ajouter les shops :
Code:
class shop_1 {
    name = "STR_Shops_Market";
    side = "cop";
    conditions = "";
    items[] = { "item_1", "item_2" };
};

class shop_2 {
    name = "STR_Shops_Market";
    side = "cop";
    conditions = "";
    items[] = { "item_3" };
};
Tu peux évidemment leur donner un autre nom pour mieux t'y retrouver
 
Bonjours

[CODE title="Config_Weapons.hpp"] class cop_basic {
name = "Armurrie";
side = "cop";
conditions = "";
items[] = {
{ "Binocular", "", 150, 75, "" },
{ "TP_Herse_Item", "", 150, 75, "" },
// { "TFAR_anprc152", "", 150, 75, "" },
{ "tf_anprc148jem", "", 150, 75, "" },
{ "ItemGPS", "", 100, 50, "" },
{ "FirstAidKit", "", 150, 75, "" },
{ "NVGoggles", "", 2000, 1000, "" },
{ "HandGrenade_Stone", $STR_W_items_Flashbang, 1700, 850, "" },
{ "DDOPP_X26", "TAZER", 2000, 1000, "" },
{ "arifle_SDAR_F", $STR_W_items_TaserRifle, 20000, 10000, "" },
{ "hgun_P07_F", "", 7500, 3750, "" },
{ "hgun_P07_khk_F", "", 7500, 3750, "" }, //Apex DLC
{ "hgun_Pistol_heavy_01_F", "", 9500, 4750, "call life_coplevel >= 1" },
{ "SMG_02_ACO_F", "", 30000, 15000, "call life_coplevel >= 2" },
{ "arifle_MX_F", "", 35000, 17500, "call life_coplevel >= 2" },
{ "hgun_ACPC2_F", "", 17500, 8750, "call life_coplevel >= 3" },
{ "arifle_MXC_F", "", 30000, 15000, "call life_coplevel >= 3" },
{ "R3F_Famas_surb_M203", "Famas M203", 20, 10, "license_cop_raid" },
{ "1Rnd_HE_Grenade_shell", "Famas Grenade", 20, 10, "license_cop_raid" },
{ "1Rnd_SmokeBlue_Grenade_shell", "Famas Grenade lacrymogène", 20, 10, "license_cop_raid" },
{ "srifle_DMR_07_blk_F", "", 32000, 16000, "call life_coplevel >= 3" } //Apex DLC Sniper
};
mags[] = {
{ "16Rnd_9x21_Mag", "", 125, 60, "" },
{ "DDOPP_1Rnd_X26", "TAZER MUNITION", 125, 60, "" },
{ "11Rnd_45ACP_Mag", "", 130, 65, "call life_coplevel >= 1" },
{ "30Rnd_65x39_caseless_mag", "", 130, 65, "call life_coplevel >= 2" },
{ "30Rnd_9x21_Mag", "", 250, 125, "call life_coplevel >= 2" },
{ "9Rnd_45ACP_Mag", "", 200, 100, "call life_coplevel >= 3" },
{ "R3F_30Rnd_556x45_TRACER_FAMAS", "Famas Munition", 20, 10, "license_cop_raid" },
{ "20Rnd_650x39_Cased_Mag_F", "", 200, 100, "call life_coplevel >= 3" } //Apex DLC
};
accs[] = {
{ "muzzle_snds_L", "", 650, 325, "" },
{ "R3F_SILENCIEUX_HK416", "Famas Silencieux", 20, 10, "license_cop_raid" },
{ "R3F_LAMPE_SURB", "Famas Lampe", 20, 10, "license_cop_raid" },
{ "optic_Hamr", "Famas Viseur", 20, 10, "license_cop_raid" },
{ "optic_MRD", "", 2750, 1375, "call life_coplevel >= 1" },
{ "acc_flashlight_pistol", "", 250, 125, "call life_coplevel >= 1" },//Pistol Flashlight
{ "acc_flashlight", "", 750, 375, "call life_coplevel >= 2" },
{ "optic_Holosight", "", 1200, 600, "call life_coplevel >= 2" },
{ "optic_Arco", "", 2500, 1250, "call life_coplevel >= 2" },
{ "muzzle_snds_H", "", 2750, 1375, "call life_coplevel >= 2" }
};
};[/CODE]

Tu peux faire de ce style avec les licences ou depuis les coplevels
 
Pour les Vêtement tu as ce style:

[CODE title="Config_Clothing.hpp"]class cop {
title = "STR_Shops_C_Police";
conditions = "license_cop_police";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "B_tenue_police_1", "", 350, "call life_coplevel >= 1" },
{ "B_tenue_police_2", "", 550, "call life_coplevel >= 1" },
{ "B_tenue_police_4", "", 1250, "call life_coplevel >= 1" }
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "beret_police_1", "", 25, "call life_coplevel >= 5" },
{ "casquette_police_3", "", 150, "" },
{ "casquette_police_1", "", 150, "" }
};
goggles[] = {
{ "NONE", $STR_C_Remove_goggles, 0, "" },
{ "G_Squares", "", 10, "" },
{ "G_Shades_Blue", "", 20, "" },
{ "G_Sport_Blackred", "", 20, "" },
{ "G_Sport_Checkered", "", 20, "" },
{ "G_Sport_Blackyellow", "", 20, "" },
{ "G_Sport_BlackWhite", "", 20, "" },
{ "G_Shades_Black", "", 25, "" },
{ "G_Lowprofile", "", 30, "" },
{ "G_Combat", "", 55, "" },
{ "G_Aviator", "", 100, "" },
{ "G_Lady_Mirror", "", 150, "" },
{ "G_Lady_Dark", "", 150, "" },
{ "G_Lady_Blue", "", 150, "" }
};
vests[] = {
{ "NONE", $STR_C_Remove_vests, 0, "" },
{ "gilet_police_1", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_2", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_3", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_4", "", 1200, "call life_coplevel >= 2" }
};
backpacks[] = {
{ "B_AssaultPack_khk", "Sac Invisible", 2000, "" }
};
};
class gendarme {
title = "STR_Shops_C_Gendarmerie";
conditions = "license_cop_gendarme";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "CGM", "", 1250, "call life_coplevel >= 1" }
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "calot_gn", "", 1200, "call life_coplevel >= 1" },
{ "kepi_gn", "", 1200, "call life_coplevel >= 5" }
};
goggles[] = {
{ "NONE", $STR_C_Remove_goggles, 0, "" }
};
vests[] = {
{ "NONE", $STR_C_Remove_vests, 0, "" },
{ "Veste_Gendarmerie_GN", "", 1200, "call life_coplevel >= 1" },
{ "Veste_Gendarmerie_MDL", "", 1200, "call life_coplevel >= 2" },
{ "Veste_Gendarmerie_MDLC", "", 1200, "call life_coplevel >= 3" },
{ "Veste_Gendarmerie_SLTN", "", 1200, "call life_coplevel >= 4" },
{ "Veste_Gendarmerie_LTN", "", 1200, "call life_coplevel >= 5" },
{ "Veste_Gendarmerie_CMD", "", 1200, "call life_coplevel >= 6" },
{ "Veste_Gendarmerie_COL", "", 1200, "call life_coplevel >= 7" }
};
backpacks[] = {
{ "B_AssaultPack_khk", "Sac Invisible", 2000, "" }
};
};

class raid {
title = "STR_Shops_C_Raid";
conditions = "license_cop_raid";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "B_tenue_raid_1", "", 1250, "call life_coplevel >= 1" },
{ "B_tenue_raid_2", "", 1250, "call life_coplevel >= 1" },
{ "gign_uniform", "", 1250, "call life_coplevel >= 1" }
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "gign_helm", "", 150, "" }
};
goggles[] = {
{ "NONE", $STR_C_Remove_goggles, 0, "" },
{ "avon_SF12", "", 150, "" }
};
vests[] = {
{ "NONE", $STR_C_Remove_vests, 0, "" },
{ "gign_HeavyVest", "", 1200, "call life_coplevel >= 5" },
{ "gign_BlackVest", "", 1200, "call life_coplevel >= 2" },
{ "gilet_raid_1", "", 1200, "call life_coplevel >= 2" },
{ "gilet_raid_2", "", 1200, "call life_coplevel >= 2" },
{ "gilet_raid_3", "", 1200, "call life_coplevel >= 4" }
};
backpacks[] = {
{ "B_AssaultPack_khk", "Sac Invisible", 2000, "" }
};
};

class bac {
title = "STR_Shops_C_Bac";
conditions = "license_cop_bac";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "B_tenue_BAC_1", "", 1250, "call life_coplevel >= 1" },
{ "B_tenue_BAC_2", "", 1250, "call life_coplevel >= 1" },
{ "U_C_Poloshirt_stripped", "", 125, "" },
{ "U_C_Poloshirt_redwhite", "", 150, "" },
{ "U_C_Poloshirt_salmon", "", 175, "" },
{ "U_C_Poloshirt_blue", "", 250, "" },
{ "U_C_Poloshirt_burgundy", "", 275, "" },
{ "U_C_Poloshirt_tricolour", "", 350, "" },
{ "U_C_Poor_2", "", 250, "" },
{ "U_IG_Guerilla2_2", "", 650, "" },
{ "U_IG_Guerilla3_1", "", 735, "" },
{ "U_OrestesBody", "", 1100, "" },
{ "U_IG_Guerilla2_3", "", 1200, "" },
{ "U_C_HunterBody_grn", "", 1500, "" },
{ "U_C_WorkerCoveralls", "", 2500, "" },
{ "U_NikosBody", "", 3000, "" },
{ "U_NikosAgedBody", $STR_C_Civ_Niko, 5000, "" }
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "casquette_police_3", "", 150, "" },
{ "casquette_police_1", "", 150, "" }
};
goggles[] = {
{ "NONE", $STR_C_Remove_goggles, 0, "" },
{ "G_Shades_Black", "", 20, "" },
{ "G_Shades_Blue", "", 20, "" },
{ "G_Shades_Green", "", 20, "" },
{ "G_Shades_Red", "", 20, "" },
{ "G_Sport_Blackred", "", 25, "" },
{ "G_Sport_BlackWhite", "", 25, "" },
{ "G_Sport_Blackyellow", "", 25, "" },
{ "G_Sport_Checkered", "", 25, "" },
{ "G_Sport_Greenblack", "", 25, "" },
{ "G_Sport_Red", "", 25, "" },
{ "G_Lowprofile", "", 30, "" },
{ "G_Squares", "", 50, "" },
{ "G_Aviator", "", 100, "" },
{ "G_Combat", "", 125, "" },
{ "G_Lady_Mirror", "", 150, "" },
{ "G_Lady_Dark", "", 150, "" },
{ "G_Lady_Blue", "", 150, "" }
};
vests[] = {
{ "NONE", $STR_C_Remove_vests, 0, "" },
{ "gilet_police_1", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_2", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_3", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_4", "", 1200, "call life_coplevel >= 2" }
};
backpacks[] = {
{ "NONE", $STR_C_Remove_backpacks, 0, "" },
{ "B_AssaultPack_khk", "Sac Invisible", 2000, "" },
{ "B_OutdoorPack_blk", "", 500, "" },
{ "B_AssaultPack_dgtl", "", 2000, "" },
{ "B_AssaultPack_rgr", "", 2000, "" },
{ "B_AssaultPack_sgg", "", 2000, "" },
{ "B_AssaultPack_blk", "", 2000, "" },
{ "B_AssaultPack_cbr", "", 2000, "" },
{ "B_AssaultPack_mcamo", "", 2000, "" },
{ "B_AssaultPack_tna_f", "", 2000, "" }, //Apex DLC
{ "B_TacticalPack_oli", "", 2500, "" },
{ "B_Kitbag_mcamo", "", 3500, "" },
{ "B_Kitbag_sgg", "", 3500, "" },
{ "B_Kitbag_cbr", "", 3500, "" },
{ "B_FieldPack_blk", "", 5000, "" },
{ "B_FieldPack_ocamo", "", 5000, "" },
{ "B_FieldPack_oucamo", "", 5000, "" },
{ "B_FieldPack_ghex_f", "", 5000, "" }, //Apex DLC
{ "B_Bergen_sgg", "", 6500, "" },
{ "B_Bergen_mcamo", "", 6500, "" },
{ "B_Bergen_rgr", "", 6500, "" },
{ "B_Bergen_blk", "", 6500, "" },
{ "B_Carryall_ocamo", "", 7500, "" },
{ "B_Carryall_oucamo", "", 7500, "" },
{ "B_Carryall_mcamo", "", 7500, "" },
{ "B_Carryall_oli", "", 7500, "" },
{ "B_Carryall_khk", "", 7500, "" },
{ "B_Carryall_cbr", "", 7500, "" },
{ "B_Carryall_ghex_f", "", 7500, "" }, //Apex DLC
{ "B_Bergen_dgtl_f", "", 9500, "" }, //Apex DLC
{ "V12_SACOCHE_LV2", "", 9500, "" },
{ "V12_SACOCHE_LV", "", 9500, "" },
{ "V12_SACOCHE_LV1", "", 9500, "" },
{ "V12_SACOCHE_GUCCI", "", 9500, "" },
{ "V12_SACOCHE_GUCCI1", "", 9500, "" },
{ "V12_SACOCHE_GUCCI2", "", 9500, "" },
{ "V12_SACOCHE_CAMO1", "", 9500, "" },
{ "V12_SACOCHE_CAMO3", "", 9500, "" },
{ "V12_SACOCHE_CAMO", "", 9500, "" },
{ "V12_SACOCHE_CAMO2", "", 9500, "" },
{ "V12_BANANE", "", 9500, "" },
{ "V12_BANANE1", "", 9500, "" },
{ "V12_BANANE_LV", "", 9500, "" },
{ "B_Bergen_tna_f", "", 9500, "" } //Apex DLC
};
};[/CODE]

Puis dans ton Init de ton Objet (Mapping)
this addAction["Magasin de la Police",life_fnc_virt_menu,"cop",1.5,true,true,"",'playerSide == west'];
this addAction["Vêtements de policier",life_fnc_clothingMenu,"cop",1.5,true,true,"",'license_cop_police'];
this addAction["Vêtements de gendarme",life_fnc_clothingMenu,"gendarme",1.5,true,true,"",'license_cop_gendarme'];
this addAction["Vêtements du raid",life_fnc_clothingMenu,"raid",1.5,true,true,"",'license_cop_raid'];
this addAction["Vêtements de bac",life_fnc_clothingMenu,"bac",1.5,true,true,"",'license_cop_bac'];
 
Solution
Hello MrAnciens MrAnciens es que c'est possible de faire la même chose que les vêtement pour les armes car j'ai déjà le système avec le cop level mais je voudrais faire comme tu m'a dis pour les vêtement avec les armes ?
 
Pour les armes tu as sois
{ "arifle_MXC_F", "", 30000, 15000, "call life_coplevel >= 3" },
{ "R3F_Famas_surb_M203", "Famas M203", 20, 10, "license_cop_raid" },

Licences ou par Coplevel :)