Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File: fn_weaponShopCfg.sqf
- Author: Bryan "Tonic" Boardwine
- 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 "cop_basic":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Cadet!"};
- case (life_coplevel < 1): {"You are not at a Cadet rank!"};
- default
- {
- ["Altis Cadet Cop Shop",
- [
- ["hgun_P07_snds_F","Stun Pistol",2000],
- ["hgun_P07_F",nil,7500],
- ["ToolKit",nil,250],
- ["FirstAidKit",nil,150],
- ["NVGoggles",nil,2000],
- ["16Rnd_9x21_Mag",nil,50],
- ]
- ];
- };
- };
- };
- case "cop_patrol":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a Police Officer!"};
- case (life_coplevel < 2): {"You are not at a Police officer rank!"};
- default
- {
- ["Altis Police Officer / Highway Patrol Shop",
- [
- ["hgun_Rook40_F",nil,2500],
- ["hgun_ACPC2_F",nil,3000],
- ["hgun_Pistol_heavy_01_F",nil,3250],
- ["SMG_02_F_F",nil,4000],
- ["acc_flashlight",nil,750],
- ["optic_ACO_grn",nil,2500],
- ["optic_ACO_grn",nil,2500],
- ["16Rnd_9x21_Mag",nil,150],
- ["9Rnd_45ACP_Mag",nil,200],
- ["11Rnd_45ACP_Mag",nil,200],
- ["30Rnd_9x21_Mag",nil,300],
- ]
- ];
- };
- };
- };
- case "cop_swat":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a SWAT Member!"};
- case (life_coplevel < 5): {"You are not at a SWAT Member rank!"};
- default
- {
- ["Altis SWAT Member Shop",
- [
- ["hgun_Pistol_heavy_02_F",nil,4000],
- ["arifle_MXC_F",nil,6000],
- ["arifle_MXM_F",nil,7500],
- ["optic_Holosight",nil,3500],
- ["optic_Hamr",nil,5000],
- ["6Rnd_45ACP_Cylinder",nil,500],
- ["30Rnd_65x39_caseless_mag",nil,750],
- ]
- ];
- };
- };
- };
- case "cop_chief":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are the Chief of Police!"};
- case (life_coplevel < 7): {"You are not at the Chief of Police rank!"};
- default
- {
- ["Altis Chief of Police Shop",
- [
- ["SMG_02_ACO_F",nil,15000],
- ["hgun_ACPC2_F",nil,17500],
- ["arifle_MXC_F",nil,30000],
- ["arifle_MXM_F",nil,50000],
- ["optic_MRCO",nil,10000],
- ["optic_Hamr",nil,15000],
- ["30Rnd_65x39_caseless_mag",nil,100],
- ["30Rnd_9x21_Mag",nil,60],
- ["9Rnd_45ACP_Mag",nil,200],
- ]
- ];
- };
- };
- };
- case "rebel":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a cop!"};
- case (!license_civ_rebel): {"You don't have a Gang training license!"};
- default
- {
- ["Jimbo da Hung Daddy's Shop",
- [
- ["arifle_TRG20_F",nil,25000],
- ["arifle_Katiba_F",nil,30000],
- ["srifle_EBR_F",nil,50000],
- ["optic_ACO_grn",nil,5000],
- ["optic_Hamr",nil,50000],
- ["acc_flashlight",nil,1000],
- ["30Rnd_9x21_Mag",nil,200],
- ["30Rnd_556x45_Stanag",nil,300],
- ["20Rnd_762x51_Mag",nil,500],
- ["30Rnd_65x39_caseless_green",nil,275],
- ]
- ];
- };
- };
- };
- case "gun":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a cop!"};
- case (!license_civ_gun): {"You don't have a Firearms license!"};
- default
- {
- ["Billy Joe's Firearms",
- [
- ["hgun_Rook40_F",nil,2500],
- ["hgun_PDW2000_F",nil,10000],
- ["optic_ACO_grn_smg",nil,2500],
- ["16Rnd_9x21_Mag",nil,25],
- ["30Rnd_9x21_Mag",nil,75],
- ]
- ];
- };
- };
- };
- case "donator":
- {
- switch(true) do
- {
- case (life_donator == 0): {"You are not a donator!"};
- default
- {
- ["Donator Shop",
- [
- ["hgun_Rook40_F",nil,500],
- ["hgun_PDW2000_F",nil,6500],
- ["arifle_Mk20C_plain_F",nil,25000],
- ["optic_ACO_grn_smg",nil,750],
- ["optic_MRCO",nil,10000],
- ["ToolKit",nil,50],
- ["itemgps",nil,50],
- ["FirstAidKit",nil,25],
- ["16Rnd_9x21_Mag",nil,25],
- ["30Rnd_9x21_Mag",nil,75],
- ["30Rnd_556x45_Stanag",nil,125],
- ]
- ];
- };
- };
- };
- case "genstore":
- {
- ["Altis General Store",
- [
- ["Binocular",nil,1000],
- ["ItemGPS",nil,2000],
- ["ToolKit",nil,5000],
- ["NVGoggles",nil,15000],
- ["Chemlight_red",nil,300],
- ["Chemlight_yellow",nil,300],
- ["Chemlight_green",nil,300],
- ["Chemlight_blue",nil,300],
- ]
- ];
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement