Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <macro.h>
- /*
- File: fn_weaponShopCfg.sqf
- Author: Bryan "Tonic" Boardwine
- Edited by: "Daniel Craven"
- Description:
- Master configuration file for the weapon shops.
- Return:
- String: Close the menu
- Array:
- [Shop Name,
- [ //Array of items to add to the store
- [classname,Custom Name (set nil for default),price]
- ]]
- */
- private["_shop"];
- _shop = [_this,0,"",[""]] call BIS_fnc_param;
- if(_shop == "") exitWith {closeDialog 0}; //Bad shop type passed.
- switch(_shop) do
- {
- case "med_supplies":
- {
- switch (true) do
- {
- case (playerSide != independent): {"You are not an EMS"};
- default
- {
- ["EMS Supplies Shop",
- [
- ["arma_life_Device_i",nil,750],
- ["FirstAidKit",nil,100],
- ["Medikit",nil,100],
- ["ToolKit",nil,100]
- ]
- ];
- };
- };
- };
- case "med_basic":
- {
- switch (true) do
- {
- case (playerSide != independent): {"You are not an EMS"};
- default
- {
- ["EMS Basic Shop",
- [
- ["A3L_Extinguisher",nil,120],
- ["tf_anprc152",nil,50],
- ["tf_rt1523g",nil,50],
- ["ItemGPS",nil,20],
- ["ItemMap",nil,1],
- ["Binocular",nil,200],
- ["NVGoggles",nil,500]
- ]
- ];
- };
- };
- };
- case "cop_basic":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- default
- {
- ["Cop Basic",
- [
- ["arma_life_Device_i",nil,2500],
- ["arma_life_handcuffs_i",nil,2500],
- ["arma_life_s_card_i",nil,2500],
- ["NVGoggles",nil,500],
- ["Medikit",nil,200],
- ["ToolKit",nil,200],
- ["Radar_Gun",nil,50],
- ["Binocular",nil,200],
- ["ItemGPS",nil,50],
- ["ItemMap",nil,50],
- ["tf_anprc152",nil,50]
- ]
- ];
- };
- };
- };
- case "cop_lsofficer":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- case (__GETC__(life_coplevel) < 1): {"You are not a Cadet!"};
- default
- {
- ["Cadet Shop",
- [
- ["Taser_26",nil,1],
- ["26_cartridge",nil,1]
- ]
- ];
- };
- };
- };
- case "cop_lscpl":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- case (__GETC__(life_coplevel) < 2): {"You are not a Deputy!"};
- default
- {
- ["Deputy Shop",
- [
- ["RH_g19",nil,500],
- ["RH_17Rnd_9x19_g17",nil,50],
- ["Taser_26",nil,1],
- ["26_cartridge",nil,1]
- ]
- ];
- };
- };
- };
- case "cop_lssgt":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- case (__GETC__(life_coplevel) < 3): {"You are not a Senior Deputy!"};
- default
- {
- ["Senior Deputy Shop",
- [
- ["hlc_smg_mp5a2",nil,1500],
- ["hlc_30Rnd_9x19_B_MP5",nil,50],
- ["RH_g19",nil,500],
- ["RH_17Rnd_9x19_g17",nil,50],
- ["Taser_26",nil,1],
- ["26_cartridge",nil,1]
- ]
- ];
- };
- };
- };
- case "cop_lslt":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- case (__GETC__(life_coplevel) < 4): {"You are not a Sergeant!"};
- default
- {
- ["Sergeant Shop",
- [
- ["RH_fnp45",nil,1500],
- ["RH_15Rnd_45cal_fnp",nil,50],
- ["hlc_smg_mp5a2",nil,1500],
- ["hlc_30Rnd_9x19_B_MP5",nil,50],
- ["RH_g19",nil,500],
- ["RH_17Rnd_9x19_g17",nil,50],
- ["Taser_26",nil,1],
- ["26_cartridge",nil,1],
- ["RH_M16A3",nil,5000],
- ["RH_30Rnd_556x45_M855A1",nil,500]
- ]
- ];
- };
- };
- };
- case "cop_fbi":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- case (__GETC__(life_coplevel) < 5): {"You are not a Detective!"};
- default
- {
- ["Detective Shop",
- [
- ["RH_kimber_nw",nil,7500],
- ["RH_7Rnd_45cal_m1911",nil,500],
- ["hgun_Pistol_heavy_01_F",nil,7500],
- ["11Rnd_45ACP_Mag",nil,500],
- ["RH_Deagleg","Golden Desert Eagle",7500],
- ["RH_7Rnd_50_AE",nil,500],
- ["RH_Deagles",nil,7500],
- ["RH_7Rnd_50_AE",nil,500],
- ["RH_tec9",nil,7500],
- ["RH_32Rnd_9x19_tec",nil,500],
- ["RH_g18",nil,500],
- ["RH_19Rnd_9x19_g18",nil,50],
- ["RH_33Rnd_9x19_g18",nil,50],
- ["A3L_AK47",nil,7500],
- ["A3L_AK47Mag",nil,500],
- ["A3L_AK47s",nil,7500],
- ["A3L_AK47sgold",nil,7500],
- ["A3L_AK47sMag",nil,500],
- ["A3L_CZ550",nil,7500],
- ["A3L_CZ550mag",nil,500],
- ["A3L_CZ550Scope",nil,1000],
- ["chakFNP90_50rnd_skin1",nil,7500],
- ["chakFNP90_57x28_B_skin1",nil,500],
- ["hlc_rifle_bcmjack",nil,7500],
- ["30Rnd_556x45_Stanag",nil,250],
- ["RH_g19",nil,500],
- ["RH_17Rnd_9x19_g17",nil,50]
- ]
- ];
- };
- };
- };
- case "cop_sert":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- case (__GETC__(life_coplevel) < 5): {"You are not SERT!"};
- default
- {
- ["SERT Shop",
- [
- ["RH_M4A6",nil,7500],
- ["RH_30Rnd_68x43_FMJ",nil,250],
- ["RH_M4m",nil,7500],
- ["RH_30Rnd_556x45_M855A1",nil,250],
- ["hlc_rifle_bcmjack",nil,7500],
- ["30Rnd_556x45_Stanag",nil,250],
- ["gign_shield","SERT Shield",1500],
- ["RH_M16A6",nil,2500],
- ["RH_30Rnd_68x43_FMJ",nil,250],
- ["RH_eotech553mag","SERT Eotech Scope",250],
- ["RH_m16covers_f","SERT Railcovers",250],
- ["RH_saker","SERT Silencer",250],
- ["HandGrenade_Stone","Flashbang",100],
- ["SmokeShellYellow",nil,100]
- ]
- ];
- };
- };
- };
- case "cop_marshall":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- case (__GETC__(life_coplevel) < 5): {"You are not Lieutenant!"};
- default
- {
- ["Lieutenant Shop",
- [
- ["RH_M4A1_ris",nil,5000],
- ["RH_30Rnd_556x45_M855A1",nil,50],
- ["hlc_smg_mp5a2",nil,1500],
- ["hlc_30Rnd_9x19_B_MP5",nil,50],
- ["RH_g19",nil,500],
- ["RH_17Rnd_9x19_g17",nil,50],
- ["Taser_26",nil,1],
- ["26_cartridge",nil,1],
- ["optic_Holosight","Holosight Scope",500],
- ["RH_barska_rds",nil,500],
- ["RH_eotech553",nil,500]
- ]
- ];
- };
- };
- };
- case "cop_lie":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- case (__GETC__(life_coplevel) < 6): {"You are not a Captain!"};
- default
- {
- ["Captain Shop",
- [
- ["RH_M4A1_ris",nil,5000],
- ["RH_30Rnd_556x45_M855A1",nil,50],
- ["RH_PDW",nil,5000],
- ["RH_30Rnd_6x35_mag",nil,100],
- ["hlc_smg_mp5a2",nil,1500],
- ["hlc_30Rnd_9x19_B_MP5",nil,50],
- ["RH_g19",nil,500],
- ["RH_17Rnd_9x19_g17",nil,50],
- ["Taser_26",nil,1],
- ["26_cartridge",nil,1],
- ["optic_Holosight","Holosight Scope",500],
- ["RH_barska_rds",nil,500],
- ["RH_eotech553",nil,500],
- ["RH_SFM952V",nil,50]
- ]
- ];
- };
- };
- };
- case "cop_command":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cop!"};
- case (__GETC__(life_coplevel) < 7): {"You are not command!"};
- default
- {
- ["Command",
- [
- // Added by Heisen edited by king5055
- ["RH_Hk416c",nil,5000],
- ["RH_30Rnd_556x45_M855A1",nil,100],
- ["AG_MP9",nil,5000],
- ["30Rnd_45ACP_Mag_SMG_01",nil,100],
- ["hlc_rifle_samr2",nil,5000],
- ["RH_30Rnd_556x45_M855A1",nil,100],
- ["hlc_rifle_augsrcarb_b",nil,5000],
- ["hlc_30Rnd_556x45_B_AUG",nil,100],
- ["hlc_rifle_CQBR",nil,5000],
- ["hlc_30rnd_556x45_EPR",nil,100],
- /////////////////////////////////////
- ["RH_kimber",nil,800],
- ["RH_7Rnd_45cal_m1911",nil,100],
- ["RH_bull",nil,800],
- ["RH_6Rnd_454_Mag",nil,100],
- ["RH_fn57",nil,800],
- ["RH_20Rnd_57x28_FN",nil,100],
- /////////////////////////////////////
- ["RH_m4covers_f",nil,50],
- ["RH_ta01nsn",nil,50],
- ["RH_SFM952V",nil,50],
- ["RH_ta31rmr",nil,50],
- ["RH_compM2",nil,50]
- ]
- ];
- };
- };
- };
- case "rebel_low":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"};
- case (!license_civ_rebel): {"Fuck Off I Don't Deal With Your Kind!"};
- default
- {
- ["Rebel Pistols",
- [
- ["RH_kimber_nw",nil,200000],
- ["RH_7Rnd_45cal_m1911",nil,5000],
- ["hgun_Pistol_heavy_01_F",nil,250000],
- ["11Rnd_45ACP_Mag",nil,5000],
- ["RH_Deagleg","Golden Desert Eagle",350000],
- ["RH_7Rnd_50_AE",nil,5500],
- ["RH_Deagles",nil,200000],
- ["RH_7Rnd_50_AE",nil,5000],
- ["RH_tec9",nil,200000],
- ["RH_32Rnd_9x19_tec",nil,5000],
- ["RH_g18",nil,200000],
- ["RH_19Rnd_9x19_g18",nil,5000],
- ["RH_33Rnd_9x19_g18",nil,15000]
- ]
- ];
- };
- };
- };
- case "rebel_high":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"};
- case (!license_civ_rebel): {"Fuck Off I Don't Deal With Your Kind!"};
- default
- {
- ["Rebel Primarys",
- [
- ["A3L_AK47",nil,300000],
- ["A3L_AK47Mag",nil,500],
- ["A3L_AK47s",nil,400000],
- ["A3L_AK47sgold",nil,550000],
- ["A3L_AK47sMag",nil,500],
- ["RH_m4_moe",nil,600000],
- ["30Rnd_556x45_Stanag",nil,500],
- ["RH_sbr9_tg",nil,100000],
- ["RH_32Rnd_9mm_M822",nil,500],
- ["chakFNP90_50rnd_skin1",nil,250000],
- ["chakFNP90_57x28_B_skin1",nil,500],
- ["hlc_smg_mp5a2",nil,300000],
- ["hlc_30Rnd_9x19_B_MP5",nil,500],
- ["hlc_optic_kobra",nil,25000]
- ]
- ];
- };
- };
- };
- case "gun":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"};
- case (!license_civ_gun): {"You don't have a Firearms license!"};
- default
- {
- ["Kaels Firearms",
- [
- ["RH_g17",nil,23500],
- ["RH_g19",nil,24250],
- ["RH_g19t",nil,22000],
- ["RH_17Rnd_9x19_g17",nil,550],
- ["RH_m9",nil,22000],
- ["RH_15Rnd_9x19_M9",nil,550],
- ["hgun_Rook40_F",nil,22500],
- ["16Rnd_9x21_Mag",nil,550],
- ["RH_mk2",nil,23500],
- ["RH_10Rnd_22LR_mk2",nil,550],
- ["RH_m9c",nil,22500],
- ["RH_15Rnd_9x19_M9",nil,550],
- ["hgun_P07_F",nil,23500],
- ["16Rnd_9x21_Mag",nil,550],
- ["RH_gsh18",nil,42800],
- ["RH_18Rnd_9x19_gsh",nil,550]
- ]
- ];
- };
- };
- };
- case "rifle":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"};
- case (!license_civ_rifle): {"You don't have a Rifle license!"};
- default
- {
- ["Hunting Rifle Shop",
- [
- ["A3L_CZ550",nil,250000],
- ["A3L_CZ550mag",nil,2500],
- ["A3L_CZ550Scope",nil,10000],
- ["arifle_SDAR_F","Turtle ONLY Harpoon",50000],
- ["20Rnd_556x45_UW_mag","Underwater magazine",2500]
- ]
- ];
- };
- };
- };
- case "genstore":
- {
- ["General Store",
- [
- ["arma_life_Device_i",nil,750],
- ["ItemMap",nil,100],
- ["tf_anprc152",nil,100],
- ["Binocular",nil,100],
- ["tf_microdagr",nil,50],
- ["ToolKit",nil,250],
- ["ItemCompass",nil,100],
- ["NVGoggles_mas_h",nil,5000],
- ["NVGoggles_OPFOR",nil,5000],
- ["NVGoggles",nil,5000],
- ["Chemlight_red",nil,50],
- ["Chemlight_yellow",nil,50],
- ["Chemlight_green",nil,50],
- ["Chemlight_blue",nil,50],
- ["CG_PICKAXE","Pickaxe(Rocket Launcher Slot)",50],
- ["cg_scythe","Stick of Death(Rocket Launcher Slot)",50],
- ["CG_BAT","Bat(Rocket Launcher Slot)",50],
- ["CG_CROSS","Holy Cross(Rocket Launcher Slot)",50],
- ["cg_machete","Machete(Rocket Launcher Slot)",50],
- ["cg_hatchet","Hatchet(Rocket Launcher Slot)",50],
- ["A3L_ChainSaw","Chainsaw(Primary Slot)",50],
- ["A3L_JackHammer","Jack Hammer(Primary Slot)",50],
- ["A3L_Shovel","Shovel(Primary Slot)",50],
- ["A3L_Hammer","Hammer(Secondary Slot)",50],
- ["A3L_Spanner","Spanner(Secondary Slot)",50],
- ["A3L_Sign2","Weed Sign(Secondary Slot)",50],
- ["A3L_Sign","Police Sign(Secondary Slot)",50],
- ["Tv_Camera","TV Camera(Secondary Slot)",50]
- ]
- ];
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement