ross8839 10 Posted January 25, 2014 I added an extra two shops to the police hq's, but for some reason, none of the shops show anything now, so my guess is I've missed something out somewhere and my eyes are just failing to see it, or maybe the classnames aren't working with Altis Life? Can anyone tell me what i need to change to this script in order to get it to work? switch(_shop) do { case "cop_misc": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; default { ["Tool Shed", [ ["Binocular",nil,500], ["ItemGPS",nil,1200], ["ToolKit",nil,350], ["FirstAidKit",nil,250], ["Medikit",nil,1500], ["NVGoggles",nil,10000] ] ]; }; }; }; case "cop_basic": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (life_coplevel == 1): {You are not a cadet!"}; default { ["Altis Cop Shop", [ ["arifle_sdar_F","Taser Rifle",20000], ["hgun_P07_snds_F","Stun Pistol",2000], ["hgun_P07_F",nil,7500], ["16Rnd_9x21_Mag",nil,50], ["20Rnd_556x45_UW_mag","Taser Rifle Magazine",125] ] ]; }; }; }; case "cop_patrol": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (life_coplevel == 2): {"You are not an officer!"} default { ["Altis Patrol Officer Shop", [ ["SMG_02_F",nil,4000], ["hgun_Rook40_F",nil,2500], ["hgun_ACPC2_F",nil,5000], ["30Rnd_9x21_Mag",nil,300], ["16Rnd_9x21_Mag",nil,150], ["9Rnd_45ACP_Mag",nil,200] ] ]; }; }; }; case "cop_sergeant": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (life_coplevel == 3): {"You are not a sergeant!"}; default { ["Altis Sergeant Officer Shop", [ ["arifle_Mk20_plain_F",nil,15000], ["arifle_MXC_F",nil,30000], ["arifle_TRG21_F",nil,22500], ["hgun_Rook40_F",nil,2500], ["hgun_ACPC2_F",nil,5000], ["30Rnd_556x45_Stanag",nil,100], ["30Rnd_65x39_caseless_mag",nil,100], ["16Rnd_9x21_Mag",nil,150], ["9Rnd_45ACP_Mag",nil,200] ] ]; }; }; }; case "cop_swat": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (life_coplevel == 4): {"You aren't a member of the swat!"}; default { ["SWAT Weapon Shop!", [ ["arifle_MX_Black_F",nil,30000], ["arifle_MXC_Black_F",nil,35000], ["arifle_MX_SW_Black_F",nil,50000], ["arifle_MXM_Black_F",nil,60000], ["srifle_DMR_01_F",nil,75000], ["hgun_Rook40_F",nil,2500], ["hgun_ACPC2_F",nil,5000], ["30Rnd_65x39_caseless_mag_Tracer",nil,500], ["100Rnd_65x39_caseless_mag_Tracer",nil,1000], ["30Rnd_65x39_caseless_mag",nil,100] ["16Rnd_9x21_Mag",nil,500], ["30Rnd_556x45_Stanag",nil,300], ["10Rnd_762x51_Mag",nil,1000], ["Rnd_45ACP_Mag",nil,275] ] ]; }; }; }; Share this post Link to post Share on other sites
dr_strangepete 6 Posted January 26, 2014 maybe you forgot to copy&paste it, but your code above is missing a }; on the last line to close your main switch() also, in 'cop_swat', you are missing a comma after ["30Rnd_65x39_caseless_mag",nil,100] Share this post Link to post Share on other sites
fusion13 11 Posted January 26, 2014 case (life_coplevel == 1): {You are not a cadet!"}; Should be case (life_coplevel == 1): {"You are not a cadet!"}; Just saying <3 Share this post Link to post Share on other sites
ross8839 10 Posted January 26, 2014 maybe you forgot to copy&paste it, but your code above is missing a }; on the last line to close your main switch()also, in 'cop_swat', you are missing a comma after ["30Rnd_65x39_caseless_mag",nil,100] As for this, the script carries on much more, and the main switch is closed off further down the script. and thankyou for noticing the comma! and Fusion, I did say it's probably something simple i missed!:p Share this post Link to post Share on other sites
Caldac 10 Posted February 25, 2014 Dear all, i tried also to extend the shop. And it doesn't work for me. Maybe the script is worng? 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 cop!"}; default { ["Altis Cop Shop", [ ["arifle_sdar_F","Taser Rifle",20000], ["hgun_P07_snds_F","Stun Pistol",2000], ["hgun_P07_F",nil,7500], ["Binocular",nil,150], ["ItemGPS",nil,100], ["ToolKit",nil,250], ["muzzle_snds_L",nil,650], ["FirstAidKit",nil,150], ["Medikit",nil,1000], ["NVGoggles",nil,2000], ["16Rnd_9x21_Mag",nil,50], ["20Rnd_556x45_UW_mag","Taser Rifle Magazine",125] ] ]; }; }; }; case "cop_patrol": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (__GETC__(life_coplevel) < 2): {"You are not at a patrol officer rank!"}; default { ["Altis Patrol Officer Shop", [ ["arifle_MX_F",nil,35000], ["SMG_02_ACO_F",nil,30000], ["MineDetector",nil,1000], ["acc_flashlight",nil,750], ["optic_Holosight",nil,1200], ["optic_Arco",nil,2500], ["muzzle_snds_H",nil,2750], ["30Rnd_65x39_caseless_mag",nil,130], ["30Rnd_9x21_Mag",nil,250] ] ]; }; }; }; case "cop_sergeant": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (__GETC__(life_coplevel) < 3): {"You are not at a sergeant rank!"}; default { ["Altis Sergeant Officer Shop", [ ["SMG_02_ACO_F",nil,15000], ["hgun_ACPC2_F",nil,17500], ["arifle_MXC_F",nil,30000], ["optic_Arco",nil,2500], ["muzzle_snds_H",nil,2750], ["30Rnd_65x39_caseless_mag",nil,100], ["30Rnd_9x21_Mag",nil,60], ["9Rnd_45ACP_Mag",nil,200] ] ]; }; }; }; case "cop_swat": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (life_coplevel > 4): {"You aren't a member of the swat!"}; default { ["SEK - Waffenkiste", [ ["arifle_MX_Black_F",nil,30000], ["arifle_MXC_Black_F",nil,35000], ["arifle_MX_SW_Black_F",nil,50000], ["arifle_MXM_Black_F",nil,60000], ["srifle_DMR_01_F",nil,75000], ["hgun_Rook40_F",nil,2500], ["hgun_ACPC2_F",nil,5000], ["30Rnd_65x39_caseless_mag_Tracer",nil,500], ["100Rnd_65x39_caseless_mag_Tracer",nil,1000], ["30Rnd_65x39_caseless_mag",nil,100], ["16Rnd_9x21_Mag",nil,500], ["30Rnd_556x45_Stanag",nil,300], ["10Rnd_762x51_Mag",nil,1000], ["Rnd_45ACP_Mag",nil,275] ] ]; }; }; }; case "rebel": { switch(true) do { case (playerSide != civilian): {"You are not a cop!"}; case (!license_civ_rebel): {"You don't have a Rebel training license!"}; default { ["Mohammed's Jihadi Shop", [ ["arifle_TRG20_F",nil,25000], ["arifle_Katiba_F",nil,30000], ["srifle_DMR_01_F",nil,50000], ["arifle_SDAR_F",nil,20000], ["optic_ACO_grn",nil,3500], ["optic_Holosight",nil,3600], ["acc_flashlight",nil,1000], ["optic_Hamr",nil,7500], ["30Rnd_9x21_Mag",nil,200], ["20Rnd_556x45_UW_mag",nil,125], ["30Rnd_556x45_Stanag",nil,300], ["10Rnd_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,6500], ["hgun_Pistol_heavy_02_F",nil,9850], ["hgun_ACPC2_F",nil,11500], ["hgun_PDW2000_F",nil,20000], ["optic_ACO_grn_smg",nil,2500], ["V_Rangemaster_belt",nil,4900], ["16Rnd_9x21_Mag",nil,25], ["9Rnd_45ACP_Mag",nil,45], ["6Rnd_45ACP_Cylinder",nil,50], ["30Rnd_9x21_Mag",nil,75] ] ]; }; }; }; case "donator": { switch(true) do { case (__GETC__(life_donator) == 0): {"You are not a donator!"}; case (__GETC__(life_donator) == 1): { ["STS Donator Shop Tier 1", [ ["hgun_Rook40_F",nil,750], ["hgun_PDW2000_F",nil,6500], ["optic_ACO_grn_smg",nil,750], ["ToolKit",nil,50], ["itemgps",nil,50], ["16Rnd_9x21_Mag",nil,25], ["30Rnd_9x21_Mag",nil,75] ] ]; }; case (__GETC__(life_donator) == 2): { ["STS Donator Shop Tier 2", [ ["hgun_Rook40_F",nil,750], ["hgun_PDW2000_F",nil,6500], ["arifle_MK20C_plain_F",nil,25000], ["optic_ACO_grn_smg",nil,750], ["NVGoggles",nil,350], ["ToolKit",nil,50], ["itemgps",nil,50], ["16Rnd_9x21_Mag",nil,25], ["30Rnd_9x21_Mag",nil,75], ["30Rnd_556x45_Stanag",nil,125] ] ]; }; case (__GETC__(life_donator) >= 3): { ["STS Donator Shop Tier 3", [ ["hgun_Rook40_F",nil,500], ["hgun_PDW2000_F",nil,6500], ["hgun_pistol_heavy_01_F",nil,5850], ["arifle_Mk20C_plain_F",nil,25000], ["optic_ACO_grn_smg",nil,750], ["optic_MRCO",nil,10000], ["NVGoggles",nil,350], ["ToolKit",nil,50], ["itemgps",nil,50], ["FirstAidKit",nil,25], ["16Rnd_9x21_Mag",nil,25], ["30Rnd_9x21_Mag",nil,75], ["11Rnd_45ACP_Mag",nil,85], ["30Rnd_556x45_Stanag",nil,125] ] ]; }; }; }; case "genstore": { ["Altis General Store", [ ["Binocular",nil,150], ["ItemGPS",nil,100], ["ToolKit",nil,250], ["FirstAidKit",nil,150], ["NVGoggles",nil,2000], ["Chemlight_red",nil,300], ["Chemlight_yellow",nil,300], ["Chemlight_green",nil,300], ["Chemlight_blue",nil,300] ] ]; }; }; Is "cop_swat" something what i have todefine in another script file? Many thanks. Share this post Link to post Share on other sites
Operationz 10 Posted May 17, 2014 completely new to all of this and i having the same problem if you add new weapons do you need to edit anything else or just this? i have put ALOT ALOT of new stuff in why im guessing thats why its not working? but maybe im missing something ive been over and it doesnt look to me like im missing anything? HELP!! #include <macro.h> /* 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 cop!"}; default { ["Altis Cop Shop", [ ["arifle_sdar_F","Taser Rifle",20000], ["20Rnd_556x45_UW_mag","Taser Rifle Magazine",nil,1000], ["hgun_P07_snds_F","Stun Pistol",5000], ["16Rnd_9x21_Mag",nil,500], ["Binocular",nil,150], ["ItemGPS",nil,100], ["ToolKit",nil,250], ["FirstAidKit",nil,150], ["Medikit",nil,1000], ["NVGoggles",nil,2000] ] ]; }; }; }; case "cop_patrol": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (__GETC__(life_coplevel) < 2): {"You are not at a patrol officer rank!"}; default { ["Altis Patrol Officer Shop", [ ["hgun_PDW2000_F",nil,20000], ["30Rnd_9x21_Mag",nil,1000], ["SMG_01_F",nil,25000], ["30Rnd_45ACP_Mag_SMG_01_tracer_green",nil,1000], ["SMG_02_F",nil,27500], ["30Rnd_9x21_Mag",nil,1000], ["arifle_Mk20_F",nil,30000], ["30Rnd_556x45_Stanag_Tracer_Green",nil,1500], ["arifle_MXC_F",nil,30000], ["30Rnd_65x39_caseless_mag_Tracer",nil,1000], ["arifle_MX_F",nil,30000], ["30Rnd_65x39_caseless_mag_Tracer",nil,1000], ["optic_ACO_grn",nil,2000], ["optic_Holosight",nil,2500], ["optic_MRCO",nil,3000], ["ItemGPS",nil,100], ["MineDetector",nil,1000], ["NVGoggles"nil,1000], ["Binocular",nil,1000], ["acc_pointer_IR",nil,3000], ["acc_flashlight",nil,3000], ["muzzle_snds_L",nil,3000], ["muzzle_snds_acp",nil,3000], ["muzzle_snds_H",nil,3000], ["FirstAidKit",nil,500], ["Medikit",nil,100], ["ToolKit",nil,1000] ] ]; }; }; }; case "cop_sergeant": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (__GETC__(life_coplevel) < 3): {"You are not at a sergeant rank!"}; default { ["Altis Sergeant Officer Shop", [ ["hgun_Pistol_heavy_01_F",nil,10000], ["optic_MRD",nil,1000], ["11Rnd_45ACP_Mag",nil,500], ["hgun_Pistol_heavy_02_F",nil,10000], ["optic_Yorris",nil,1000], ["6Rnd_45ACP_Cylinder",nil,1000], ["arifle_MX_SW_Black_F",nil,100000], ["100Rnd_65x39_caseless_mag",nil,1500], ["arifle_MXM_Black_F",nil,200000], ["30Rnd_65x39_caseless_mag",nil,1000], ["LMG_Mk200_F",nil,300000], ["200Rnd_65x39_cased_Box",nil,2000], ["srifle_DMR_01_F",nil,80000], ["10Rnd_762x51_Mag",nil,800], ["srifle_EBR_F",nil,90000], ["20Rnd_762x51_Mag",nil,1000], ["srifle_LRR_F",nil,500000], ["7Rnd_408_Mag",nil,2500], ["srifle_GM6_F",nil,800000], ["5Rnd_127x108_Mag",nil,3000], ["5Rnd_127x108_APDS_Mag",nil,5000], ["muzzle_snds_H",nil,2000], ["muzzle_snds_B",nil,2000], ["muzzle_snds_H_MG",nil,3000], ["optic_ACO_grn",nil,2000], ["optic_Holosight",nil,2500], ["optic_MRCO",nil,3000], ["optic_Hamr",nil,3500], ["optic_DMS",nil,4000], ["optic_SOS",nil,4500], ["optic_LRPS",nil,5000], ["optic_tws",nil,5500], ["optic_tws_mg",nil,5000], ["optic_Nightstalker",nil,8000], ["launch_B_Titan_short_F",nil,200000], ["Titan_AT",nil,20000], ["Titan_AP",nil,25000], ["launch_B_Titan_F",nil,500000], ["Titan_AA",nil,20000] ] ]; }; }; }; case "rebel": { switch(true) do { case (playerSide != civilian): {"You are not a cop!"}; case (!license_civ_rebel): {"You don't have a Rebel training license!"}; default { ["Friendly Rebelz", [ ["arifle_TRG20_F",nil,25000], ["arifle_Katiba_F",nil,30000], ["srifle_DMR_01_F",nil,50000], ["arifle_SDAR_F",nil,20000], ["optic_ACO_grn",nil,3500], ["optic_Holosight",nil,3600], ["acc_flashlight",nil,1000], ["optic_Hamr",nil,7500], ["30Rnd_9x21_Mag",nil,200], ["20Rnd_556x45_UW_mag",nil,125], ["30Rnd_556x45_Stanag",nil,300], ["10Rnd_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 { ["|GUNZ|4|U|", [ ["hgun_Rook40_F",nil,10000], ["16Rnd_9x21_Mag",nil,500], ["hgun_ACPC2_F",nil,15000], ["9Rnd_45ACP_Mag",nil,750], ["hgun_PDW2000_F",nil,20000], ["30Rnd_9x21_Mag",nil,1000], ["optic_Aco",nil,2500], ["FirstAidKit",nil,500], ["U_C_HunterBody_grn",nil,2500], ["V_Rangemaster_belt",nil,2500] ] ]; }; }; }; case "donator": { switch(true) do { case (__GETC__(life_donator) == 0): {"You are not a donator!"}; case (__GETC__(life_donator) == 1): { ["Donator Shop Tier 1", [ ["hgun_Rook40_F",nil,750], ["hgun_PDW2000_F",nil,6500], ["optic_ACO_grn_smg",nil,750], ["ToolKit",nil,50], ["itemgps",nil,50], ["16Rnd_9x21_Mag",nil,25], ["30Rnd_9x21_Mag",nil,75] ] ]; }; case (__GETC__(life_donator) == 2): { ["STS Donator Shop Tier 2", [ ["hgun_Rook40_F",nil,750], ["hgun_PDW2000_F",nil,6500], ["arifle_MK20C_plain_F",nil,25000], ["optic_ACO_grn_smg",nil,750], ["NVGoggles",nil,350], ["ToolKit",nil,50], ["itemgps",nil,50], ["16Rnd_9x21_Mag",nil,25], ["30Rnd_9x21_Mag",nil,75], ["30Rnd_556x45_Stanag",nil,125] ] ]; }; case (__GETC__(life_donator) >= 3): { ["Donator Tier 3", [ ["hgun_Pistol_heavy_01_F",nil,10000], ["optic_MRD",nil,1000], ["11Rnd_45ACP_Mag",nil,500], ["hgun_Pistol_heavy_02_F",nil,10000], ["optic_Yorris",nil,1000], ["6Rnd_45ACP_Cylinder",nil,1000], ["hgun_PDW2000_F",nil,20000], ["30Rnd_9x21_Mag",nil,1000], ["SMG_01_F",nil,25000], ["30Rnd_45ACP_Mag_SMG_01",nil,1000], ["SMG_02_F",nil,27500], ["30Rnd_9x21_Mag",nil,1000], ["arifle_Mk20_F",nil,30000], ["30Rnd_556x45_Stanag",nil,1500], ["arifle_Katiba_GL_F",nil,50000], ["30Rnd_65x39_caseless_green",nil,1000], ["1Rnd_HE_Grenade_shell",nil,1000], ["UGL_FlareYellow_F",nil,1000], ["arifle_MXM_Black_F",nil,200000], ["30Rnd_65x39_caseless_mag",nil,1000], ["LMG_Zafir_F",nil,60000], ["200Rnd_65x39_cased_Box",nil,2000], ["srifle_DMR_01_F",nil,30000], ["10Rnd_762x51_Mag",nil,800], ["srifle_EBR_F",nil,35000], ["20Rnd_762x51_Mag",nil,1000], ["srifle_LRR_F",nil,100000], ["7Rnd_408_Mag",nil,2500], ["srifle_GM6_F",nil,250000], ["5Rnd_127x108_Mag",nil,3000], ["5Rnd_127x108_APDS_Mag",nil,5000], ["optic_ACO_grn",nil,2000], ["optic_Holosight",nil,2500], ["optic_MRCO",nil,3000], ["optic_Hamr",nil,3500], ["optic_DMS",nil,4000], ["optic_SOS",nil,4500], ["optic_LRPS",nil,5000], ["optic_tws",nil,5500], ["optic_tws_mg",nil,5000], ["optic_Nightstalker",nil,8000], ["muzzle_snds_L",nil,3000], ["muzzle_snds_M",nil,3000], ["muzzle_snds_H",nil,3000], ["muzzle_snds_B",nil,3000], ["Rangefinder",nil,150], ["ItemGPS",nil,100], ["ToolKit",nil,250], ["FirstAidKit",nil,150], ["NVGoggles",nil,2000], ["Headgear_H_Shemag_khk",nil,1000], ["Headgear_H_Shemag_tan",nil,1000], ["Headgear_H_Shemag_olive",nil,1000], ["Headgear_H_ShemagOpen_khk",nil,1000], ["Headgear_H_ShemagOpen_tan",nil,1000], ["U_O_CombatUniform_ocamo",nil,15000], ["U_O_CombatUniform_oucamo",nil,15000], ["U_O_OfficerUniform_ocamo",nil,15000], ["U_O_PilotCoveralls",nil,15000], ["U_O_SpecopsUniform_ocamo",nil,15000], ["U_OG_Guerilla1_1",nil,15000], ["U_O_GhillieSuit",nil,25000], ["V_TacVestIR_blk",nil,20000], ["V_Chestrig_khk",nil,15000], ["V_Chestrig_oli",nil,15000], ["V_Chestrig_rgr",nil,15000], ["V_TacVest_blk",nil,20000], ["V_TacVest_brn",nil,20000], ["V_TacVest_khk",nil,20000], ["V_TacVest_camo",nil,20000], ["V_TacVest_oli",nil,20000], ["V_TacVestCamo_khk",nil,20000], ["ELBV Harness",nil,20000], ["LBV Harness",nil,20000], ["LBV Grenadier Harness",nil,20000], ["B_Bergen_sgg",nil,20000], ["B_Bergen_mcamo",nil,20000], ["B_Bergen_rgr",nil,20000], ["B_Bergen_blk",nil,20000], ["B_Carryall_ocamo",nil,20000], ["B_Carryall_oucamo",nil,20000], ["B_Carryall_mcamo",nil,20000], ["B_Carryall_oli",nil,20000], ["B_Carryall_khk",nil,20000], ["B_Carryall_cbr",nil,20000], ["launch_O_Titan_short_F",nil,200000], ["Titan_AT",nil,20000], ["Titan_AP",nil,25000], ["launch_O_Titan_F",nil,500000], ["Titan_AA",nil,20000] ] ]; }; }; }; case "genstore": { ["OP General Store", [ ["Binocular",nil,150], ["ItemGPS",nil,100], ["ToolKit",nil,250], ["FirstAidKit",nil,150], ["NVGoggles",nil,2000], ["Chemlight_red",nil,300], ["Chemlight_yellow",nil,300], ["Chemlight_green",nil,300], ["Chemlight_blue",nil,300] ] ]; }; }; Share this post Link to post Share on other sites
fusion13 11 Posted May 18, 2014 completely new to all of this and i having the same problem if you add new weapons do you need to edit anything else or just this? i have put ALOT ALOT of new stuff in why im guessing thats why its not working? but maybe im missing something ive been over and it doesnt look to me like im missing anything? HELP!!#include <macro.h> /* 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 cop!"}; default { ["Altis Cop Shop", [ ["arifle_sdar_F","Taser Rifle",20000], ["20Rnd_556x45_UW_mag","Taser Rifle Magazine",nil,1000], ["hgun_P07_snds_F","Stun Pistol",5000], ["16Rnd_9x21_Mag",nil,500], ["Binocular",nil,150], ["ItemGPS",nil,100], ["ToolKit",nil,250], ["FirstAidKit",nil,150], ["Medikit",nil,1000], ["NVGoggles",nil,2000] ] ]; }; }; }; case "cop_patrol": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (__GETC__(life_coplevel) < 2): {"You are not at a patrol officer rank!"}; default { ["Altis Patrol Officer Shop", [ ["hgun_PDW2000_F",nil,20000], ["30Rnd_9x21_Mag",nil,1000], ["SMG_01_F",nil,25000], ["30Rnd_45ACP_Mag_SMG_01_tracer_green",nil,1000], ["SMG_02_F",nil,27500], ["30Rnd_9x21_Mag",nil,1000], ["arifle_Mk20_F",nil,30000], ["30Rnd_556x45_Stanag_Tracer_Green",nil,1500], ["arifle_MXC_F",nil,30000], ["30Rnd_65x39_caseless_mag_Tracer",nil,1000], ["arifle_MX_F",nil,30000], ["30Rnd_65x39_caseless_mag_Tracer",nil,1000], ["optic_ACO_grn",nil,2000], ["optic_Holosight",nil,2500], ["optic_MRCO",nil,3000], ["ItemGPS",nil,100], ["MineDetector",nil,1000], ["NVGoggles"nil,1000], ["Binocular",nil,1000], ["acc_pointer_IR",nil,3000], ["acc_flashlight",nil,3000], ["muzzle_snds_L",nil,3000], ["muzzle_snds_acp",nil,3000], ["muzzle_snds_H",nil,3000], ["FirstAidKit",nil,500], ["Medikit",nil,100], ["ToolKit",nil,1000] ] ]; }; }; }; case "cop_sergeant": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (__GETC__(life_coplevel) < 3): {"You are not at a sergeant rank!"}; default { ["Altis Sergeant Officer Shop", [ ["hgun_Pistol_heavy_01_F",nil,10000], ["optic_MRD",nil,1000], ["11Rnd_45ACP_Mag",nil,500], ["hgun_Pistol_heavy_02_F",nil,10000], ["optic_Yorris",nil,1000], ["6Rnd_45ACP_Cylinder",nil,1000], ["arifle_MX_SW_Black_F",nil,100000], ["100Rnd_65x39_caseless_mag",nil,1500], ["arifle_MXM_Black_F",nil,200000], ["30Rnd_65x39_caseless_mag",nil,1000], ["LMG_Mk200_F",nil,300000], ["200Rnd_65x39_cased_Box",nil,2000], ["srifle_DMR_01_F",nil,80000], ["10Rnd_762x51_Mag",nil,800], ["srifle_EBR_F",nil,90000], ["20Rnd_762x51_Mag",nil,1000], ["srifle_LRR_F",nil,500000], ["7Rnd_408_Mag",nil,2500], ["srifle_GM6_F",nil,800000], ["5Rnd_127x108_Mag",nil,3000], ["5Rnd_127x108_APDS_Mag",nil,5000], ["muzzle_snds_H",nil,2000], ["muzzle_snds_B",nil,2000], ["muzzle_snds_H_MG",nil,3000], ["optic_ACO_grn",nil,2000], ["optic_Holosight",nil,2500], ["optic_MRCO",nil,3000], ["optic_Hamr",nil,3500], ["optic_DMS",nil,4000], ["optic_SOS",nil,4500], ["optic_LRPS",nil,5000], ["optic_tws",nil,5500], ["optic_tws_mg",nil,5000], ["optic_Nightstalker",nil,8000], ["launch_B_Titan_short_F",nil,200000], ["Titan_AT",nil,20000], ["Titan_AP",nil,25000], ["launch_B_Titan_F",nil,500000], ["Titan_AA",nil,20000] ] ]; }; }; }; case "rebel": { switch(true) do { case (playerSide != civilian): {"You are not a cop!"}; case (!license_civ_rebel): {"You don't have a Rebel training license!"}; default { ["Friendly Rebelz", [ ["arifle_TRG20_F",nil,25000], ["arifle_Katiba_F",nil,30000], ["srifle_DMR_01_F",nil,50000], ["arifle_SDAR_F",nil,20000], ["optic_ACO_grn",nil,3500], ["optic_Holosight",nil,3600], ["acc_flashlight",nil,1000], ["optic_Hamr",nil,7500], ["30Rnd_9x21_Mag",nil,200], ["20Rnd_556x45_UW_mag",nil,125], ["30Rnd_556x45_Stanag",nil,300], ["10Rnd_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 { ["|GUNZ|4|U|", [ ["hgun_Rook40_F",nil,10000], ["16Rnd_9x21_Mag",nil,500], ["hgun_ACPC2_F",nil,15000], ["9Rnd_45ACP_Mag",nil,750], ["hgun_PDW2000_F",nil,20000], ["30Rnd_9x21_Mag",nil,1000], ["optic_Aco",nil,2500], ["FirstAidKit",nil,500], ["U_C_HunterBody_grn",nil,2500], ["V_Rangemaster_belt",nil,2500] ] ]; }; }; }; case "donator": { switch(true) do { case (__GETC__(life_donator) == 0): {"You are not a donator!"}; case (__GETC__(life_donator) == 1): { ["Donator Shop Tier 1", [ ["hgun_Rook40_F",nil,750], ["hgun_PDW2000_F",nil,6500], ["optic_ACO_grn_smg",nil,750], ["ToolKit",nil,50], ["itemgps",nil,50], ["16Rnd_9x21_Mag",nil,25], ["30Rnd_9x21_Mag",nil,75] ] ]; }; case (__GETC__(life_donator) == 2): { ["STS Donator Shop Tier 2", [ ["hgun_Rook40_F",nil,750], ["hgun_PDW2000_F",nil,6500], ["arifle_MK20C_plain_F",nil,25000], ["optic_ACO_grn_smg",nil,750], ["NVGoggles",nil,350], ["ToolKit",nil,50], ["itemgps",nil,50], ["16Rnd_9x21_Mag",nil,25], ["30Rnd_9x21_Mag",nil,75], ["30Rnd_556x45_Stanag",nil,125] ] ]; }; case (__GETC__(life_donator) >= 3): { ["Donator Tier 3", [ ["hgun_Pistol_heavy_01_F",nil,10000], ["optic_MRD",nil,1000], ["11Rnd_45ACP_Mag",nil,500], ["hgun_Pistol_heavy_02_F",nil,10000], ["optic_Yorris",nil,1000], ["6Rnd_45ACP_Cylinder",nil,1000], ["hgun_PDW2000_F",nil,20000], ["30Rnd_9x21_Mag",nil,1000], ["SMG_01_F",nil,25000], ["30Rnd_45ACP_Mag_SMG_01",nil,1000], ["SMG_02_F",nil,27500], ["30Rnd_9x21_Mag",nil,1000], ["arifle_Mk20_F",nil,30000], ["30Rnd_556x45_Stanag",nil,1500], ["arifle_Katiba_GL_F",nil,50000], ["30Rnd_65x39_caseless_green",nil,1000], ["1Rnd_HE_Grenade_shell",nil,1000], ["UGL_FlareYellow_F",nil,1000], ["arifle_MXM_Black_F",nil,200000], ["30Rnd_65x39_caseless_mag",nil,1000], ["LMG_Zafir_F",nil,60000], ["200Rnd_65x39_cased_Box",nil,2000], ["srifle_DMR_01_F",nil,30000], ["10Rnd_762x51_Mag",nil,800], ["srifle_EBR_F",nil,35000], ["20Rnd_762x51_Mag",nil,1000], ["srifle_LRR_F",nil,100000], ["7Rnd_408_Mag",nil,2500], ["srifle_GM6_F",nil,250000], ["5Rnd_127x108_Mag",nil,3000], ["5Rnd_127x108_APDS_Mag",nil,5000], ["optic_ACO_grn",nil,2000], ["optic_Holosight",nil,2500], ["optic_MRCO",nil,3000], ["optic_Hamr",nil,3500], ["optic_DMS",nil,4000], ["optic_SOS",nil,4500], ["optic_LRPS",nil,5000], ["optic_tws",nil,5500], ["optic_tws_mg",nil,5000], ["optic_Nightstalker",nil,8000], ["muzzle_snds_L",nil,3000], ["muzzle_snds_M",nil,3000], ["muzzle_snds_H",nil,3000], ["muzzle_snds_B",nil,3000], ["Rangefinder",nil,150], ["ItemGPS",nil,100], ["ToolKit",nil,250], ["FirstAidKit",nil,150], ["NVGoggles",nil,2000], ["Headgear_H_Shemag_khk",nil,1000], ["Headgear_H_Shemag_tan",nil,1000], ["Headgear_H_Shemag_olive",nil,1000], ["Headgear_H_ShemagOpen_khk",nil,1000], ["Headgear_H_ShemagOpen_tan",nil,1000], ["U_O_CombatUniform_ocamo",nil,15000], ["U_O_CombatUniform_oucamo",nil,15000], ["U_O_OfficerUniform_ocamo",nil,15000], ["U_O_PilotCoveralls",nil,15000], ["U_O_SpecopsUniform_ocamo",nil,15000], ["U_OG_Guerilla1_1",nil,15000], ["U_O_GhillieSuit",nil,25000], ["V_TacVestIR_blk",nil,20000], ["V_Chestrig_khk",nil,15000], ["V_Chestrig_oli",nil,15000], ["V_Chestrig_rgr",nil,15000], ["V_TacVest_blk",nil,20000], ["V_TacVest_brn",nil,20000], ["V_TacVest_khk",nil,20000], ["V_TacVest_camo",nil,20000], ["V_TacVest_oli",nil,20000], ["V_TacVestCamo_khk",nil,20000], ["ELBV Harness",nil,20000], ["LBV Harness",nil,20000], ["LBV Grenadier Harness",nil,20000], ["B_Bergen_sgg",nil,20000], ["B_Bergen_mcamo",nil,20000], ["B_Bergen_rgr",nil,20000], ["B_Bergen_blk",nil,20000], ["B_Carryall_ocamo",nil,20000], ["B_Carryall_oucamo",nil,20000], ["B_Carryall_mcamo",nil,20000], ["B_Carryall_oli",nil,20000], ["B_Carryall_khk",nil,20000], ["B_Carryall_cbr",nil,20000], ["launch_O_Titan_short_F",nil,200000], ["Titan_AT",nil,20000], ["Titan_AP",nil,25000], ["launch_O_Titan_F",nil,500000], ["Titan_AA",nil,20000] ] ]; }; }; }; case "genstore": { ["OP General Store", [ ["Binocular",nil,150], ["ItemGPS",nil,100], ["ToolKit",nil,250], ["FirstAidKit",nil,150], ["NVGoggles",nil,2000], ["Chemlight_red",nil,300], ["Chemlight_yellow",nil,300], ["Chemlight_green",nil,300], ["Chemlight_blue",nil,300] ] ]; }; }; Please re-post with proper tags [/i] it makes it easier to read <3 Share this post Link to post Share on other sites
Operationz 10 Posted May 22, 2014 Please re-post with proper tags [/i] it makes it easier to read <3yeah sorry about that i realized i had a 556 red tracer that through it out completely when it was in the wrong shop very strange!!new question relating to the original post if i wish to add like another 2 cop shops do i just add in like these guys have in the original post, and also add it to the NPC in cop base or do i have to add any extra scipt into any other sqms? Share this post Link to post Share on other sites