Hallo NN !
Ich habe ein Problem beim bearbeiten meiner fn_weaponShopCfg.sqf.
Mir werden absolut keine Waffen angezeigt.
Vorher war es auch bei den KleidungsShops so, dies habe ich aber wieder repariert.
fn_weaponShopCfg.sqf:
Spoiler anzeigen
Code: fn_weaponShopCfg.sqf
#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_polizeianwärter":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist!"};
default
{
["Polizeianwärter Waffen",
[
["arifle_sdar_F","Taser Sturmgewehr",10],
["hgun_Rook40_F","Taser-Pistole",10],
["hgun_Rook40_snds_F","Taser-Pistole Silenced",10],
["16Rnd_9x21_Mag","16er Magazin",10],
["20Rnd_556x45_UW_mag","5,56er Magazin",10],
["Rangefinder",nil,10]
]
];
};
};
};
case "cop_visier":
{
switch(true) do
{
case (playerSide != west): {"Du bist kein Polizist!"};
case (__GETC__(life_coplevel) < 1): {"Du kannst erst als Polizist hier Zugreifen !"};
default
{
["Visiere & Sonstiges",
[
["ItemMap",nil,10],
["ItemWatch",nil,10],
["ItemCompass",nil,10],
["ItemGPS",nil,10],
["ToolKit",nil,10],
["Medikit",nil,10],
["NVGoggles_OPFOR",nil,10],
["Chemlight_red",nil,10],
["Chemlight_yellow",nil,10],
["Chemlight_green",nil,10],
["Chemlight_blue",nil,10],
["acc_flashlight",nil,10],
["acc_pointer_IR",nil,10],
["B_UavTerminal",nil,10],
["Rangefinder",nil,10],
["optic_Holosight",nil,10],
["optic_ACO_smg",nil,10],
["optic_MRCO",nil,10],
["optic_LRPS",nil,10],
["optic_DMS",nil,10],
["optic_NVS",nil,10],
["optic_Arco",nil,10],
["optic_tws",nil,10],
["optic_Nightstalker",nil,10],
["optic_AMS",nil,10],
["optic_KHS_blk",nil,10],
["bipod_01_F_blk",nil,10],
["muzzle_snds_L",nil,10],
["muzzle_snds_M",nil,10],
["muzzle_snds_H",nil,10],
["muzzle_snds_93mmg",nil,10]
]
];
};
};
};
case "adac_basic":
{
switch (true) do
{
case (playerSide != independent): {"Du bist kein ADAC"};
case (__GETC__(life_mediclevel) < 2): {"Du kannst erst als ADAC hier Zugreifen !"};
default {
["ADAC Shop",
[
["ItemGPS",nil,10],
["Binocular",nil,10],
["ToolKit",nil,10],
["FirstAidKit",nil,10],
["Medikit",nil,10],
["NVGoggles",nil,10],
["Chemlight_red",nil,20],
["Chemlight_yellow",nil,20],
["Chemlight_green",nil,20],
["Chemlight_blue",nil,20]
]
];
};
};
};
case "med_basic":
{
switch (true) do
{
case (playerSide != independent): {"Du bist kein MEDIC"};
case (__GETC__(life_mediclevel) < 1): {"Du kannst erst als MEDIC hier Zugreifen !"};
default {
["Notarzt Items",
[
["ItemGPS",nil,10],
["Binocular",nil,10],
["ToolKit",nil,10],
["FirstAidKit",nil,10],
["Medikit",nil,10],
["NVGoggles",nil,10],
["Chemlight_red",nil,20],
["Chemlight_yellow",nil,20],
["Chemlight_green",nil,20],
["Chemlight_blue",nil,20]
]
];
};
};
};
case "cop_polizeibeamter":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 2): {"Du bist noch kein Polizeibeamter!"};
default
{
["Polizeibeamter Waffen",
[
["arifle_sdar_F","Taser Sturmgewehr",10],
["hgun_Rook40_F","Taser-Pistole",10],
["hgun_Rook40_snds_F","Taser-Pistole Silenced",10],
["16Rnd_9x21_Mag","16er Magazin",10],
["20Rnd_556x45_UW_mag","5,56er Magazin",10]
]
];
};
};
};
case "cop_polizeimeister":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 3): {"Du bist noch kein Polizeiobermeister!"};
default
{
["Polizeimeister Waffen",
[
["arifle_MXC_F",nil,10],
["arifle_MX_F",nil,10],
["arifle_sdar_F","Taser Sturmgewehr",10],
["SMG_02_F",nil,10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["30Rnd_9x21_Mag","9mm-Gummi",10],
["20Rnd_556x45_UW_mag","Taser Waffe Magazin",10]
]
];
};
};
};
case "cop_polizeihauptmeister":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 4): {"Du bist noch kein Polizeihauptmeister!"};
default
{
["Polizeihauptmeister Waffen",
[
["SMG_02_F",nil,10],
["arifle_TRG20_F",nil,10],
["arifle_MX_F",nil,10],
["arifle_MXC_F",nil,10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["30Rnd_9x21_Mag",nil,10],
["30Rnd_556x45_Stanag",nil,10],
["SmokeShellOrange","Rauchgranate",10]
]
];
};
};
};
case "cop_kommissar":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 5): {"Du bist kein Kommissar!"};
default
{
["Kommissar Waffen",
[
["arifle_MXM_Black_F",nil,10],
["arifle_MX_Black_F",nil,10],
["arifle_MXC_Black_F",nil,10],
["SMG_02_F",nil,10],
["arifle_TRG21_F",nil,10],
["SmokeShellBlue","CE-Gas",10],
["HandGrenade_Stone","Blendgranate",10],
["SmokeShellOrange","Rauchgranate",10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["30Rnd_9x21_Mag",nil,10],
["30Rnd_556x45_Stanag",nil,10]
]
];
};
};
};
case "cop_oberkommissar":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 6): {"Du bist kein Oberkommissar!"};
default
{
["Oberkommissar Waffen",
[
["arifle_MXM_Black_F",nil,10],
["arifle_MX_Black_F",nil,10],
["arifle_MXC_Black_F",nil,10],
["arifle_MX_SW_Black_F",nil,10],
["srifle_DMR_05_blk_F",nil,10],
["SMG_02_F",nil,10],
["srifle_EBR_F",nil,10],
["arifle_TRG21_F",nil,10],
["srifle_DMR_02_F",nil,10],
["srifle_DMR_03_F",nil,10],
["srifle_DMR_04_F",nil,10],
["srifle_DMR_06_camo_F",nil,10],
["MMG_01_hex_F",nil,10],
["MMG_02_black_F",nil,10],
["hgun_Pistol_Signal_F",nil,10],
["SmokeShellBlue","CE-Gas",10],
["HandGrenade_Stone","Blendgranate",10],
["SmokeShellOrange","Rauchgranaten",10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["20Rnd_762x51_Mag",nil,10],
["30Rnd_9x21_Mag",nil,10],
["10Rnd_93x64_DMR_05_Mag",nil,10],
["6Rnd_RedSignal_F",nil,10],
["10Rnd_127x54_Mag",nil,10],
["10Rnd_338_Mag",nil,10],
["150Rnd_93x64_Mag",nil,10],
["130Rnd_338_Mag",nil,10],
["100Rnd_65x39_caseless_mag",nil,10]
]
];
};
};
};
case "cop_hauptkommissar":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 7): {"Du bist kein Hauptkommissar!"};
default
{
["Hauptkommissar Waffen",
[
["arifle_MXM_Black_F",nil,10],
["arifle_MX_Black_F",nil,10],
["arifle_MXC_Black_F",nil,10],
["arifle_MX_SW_Black_F",nil,10],
["srifle_DMR_05_blk_F",nil,10],
["SMG_02_F",nil,10],
["srifle_EBR_F",nil,10],
["arifle_TRG21_F",nil,10],
["srifle_DMR_02_F",nil,10],
["srifle_DMR_03_F",nil,10],
["srifle_DMR_04_F",nil,10],
["srifle_DMR_06_camo_F",nil,10],
["MMG_01_hex_F",nil,10],
["MMG_02_black_F",nil,10],
["hgun_Pistol_Signal_F",nil,10],
["SmokeShellBlue","CE-Gas",10],
["HandGrenade_Stone","Blendgranate",10],
["SmokeShellOrange","Rauchgranaten",10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["20Rnd_762x51_Mag",nil,10],
["30Rnd_9x21_Mag",nil,10],
["10Rnd_93x64_DMR_05_Mag",nil,10],
["6Rnd_RedSignal_F",nil,10],
["10Rnd_127x54_Mag",nil,10],
["10Rnd_338_Mag",nil,10],
["150Rnd_93x64_Mag",nil,10],
["130Rnd_338_Mag",nil,10],
["100Rnd_65x39_caseless_mag",nil,10]
]
];
};
};
};
case "cop_bundesgrenzschutz":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 8): {"Du bist kein Bundesgrenzschutzbeamter!"};
default
{
["Bundesgrenzschutz Waffen",
[
["arifle_MXM_Black_F",nil,10],
["arifle_MX_Black_F",nil,10],
["arifle_MXC_Black_F",nil,10],
["arifle_MX_SW_Black_F",nil,10],
["srifle_DMR_05_blk_F",nil,10],
["SMG_02_F",nil,10],
["srifle_EBR_F",nil,10],
["arifle_TRG21_F",nil,10],
["srifle_DMR_02_F",nil,10],
["srifle_DMR_03_F",nil,10],
["srifle_DMR_04_F",nil,10],
["srifle_DMR_06_camo_F",nil,10],
["MMG_01_hex_F",nil,10],
["MMG_02_black_F",nil,10],
["hgun_Pistol_Signal_F",nil,10],
["SmokeShellBlue","CE-Gas",10],
["HandGrenade_Stone","Blendgranate",10],
["SmokeShellOrange","Rauchgranaten",10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["20Rnd_762x51_Mag",nil,10],
["30Rnd_9x21_Mag",nil,10],
["10Rnd_93x64_DMR_05_Mag",nil,10],
["6Rnd_RedSignal_F",nil,10],
["10Rnd_127x54_Mag",nil,10],
["10Rnd_338_Mag",nil,10],
["150Rnd_93x64_Mag",nil,10],
["130Rnd_338_Mag",nil,10],
["100Rnd_65x39_caseless_mag",nil,10]
]
];
};
};
};
case "cop_sek":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 9): {"Du bist kein SEK Beamter!"};
default
{
["SEK Waffen",
[
["arifle_MXM_Black_F",nil,10],
["arifle_MX_Black_F",nil,10],
["arifle_MXC_Black_F",nil,10],
["arifle_MX_SW_Black_F",nil,10],
["srifle_DMR_05_blk_F",nil,10],
["srifle_LRR_F",nil,10],
["SMG_02_F",nil,10],
["srifle_EBR_F",nil,10],
["arifle_TRG21_F",nil,10],
["srifle_DMR_02_F",nil,10],
["srifle_DMR_03_F",nil,10],
["srifle_DMR_04_F",nil,10],
["srifle_DMR_06_camo_F",nil,10],
["MMG_01_hex_F",nil,10],
["MMG_02_black_F",nil,10],
["hgun_Pistol_Signal_F",nil,10],
["SmokeShellBlue","CE-Gas",10],
["HandGrenade_Stone","Blendgranate",10],
["SmokeShellOrange","Rauchgranaten",10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["20Rnd_762x51_Mag",nil,10],
["7Rnd_408_Mag",nil,10],
["30Rnd_9x21_Mag",nil,10],
["10Rnd_93x64_DMR_05_Mag",nil,10],
["6Rnd_RedSignal_F",nil,10],
["10Rnd_127x54_Mag",nil,10],
["10Rnd_338_Mag",nil,10],
["150Rnd_93x64_Mag",nil,10],
["130Rnd_338_Mag",nil,10],
["100Rnd_65x39_caseless_mag",nil,10]
]
];
};
};
};
case "cop_sekleiter":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 10): {"Du bist kein SEK Leiter!"};
default
{
["SEK Leiter Waffen",
[
["arifle_MXM_Black_F",nil,10],
["arifle_MX_Black_F",nil,10],
["arifle_MXC_Black_F",nil,10],
["arifle_MX_SW_Black_F",nil,10],
["srifle_DMR_05_blk_F",nil,10],
["SMG_02_F",nil,10],
["srifle_EBR_F",nil,10],
["arifle_TRG21_F",nil,10],
["srifle_DMR_02_F",nil,10],
["srifle_DMR_03_F",nil,10],
["srifle_DMR_04_F",nil,10],
["srifle_DMR_06_camo_F",nil,10],
["MMG_01_hex_F",nil,10],
["MMG_02_black_F",nil,10],
["hgun_Pistol_Signal_F",nil,10],
["SmokeShellBlue","CE-Gas",10],
["HandGrenade_Stone","Blendgranate",10],
["SmokeShellOrange","Rauchgranaten",10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["20Rnd_762x51_Mag",nil,10],
["30Rnd_9x21_Mag",nil,10],
["10Rnd_93x64_DMR_05_Mag",nil,10],
["6Rnd_RedSignal_F",nil,10],
["10Rnd_127x54_Mag",nil,10],
["10Rnd_338_Mag",nil,10],
["150Rnd_93x64_Mag",nil,10],
["130Rnd_338_Mag",nil,10],
["100Rnd_65x39_caseless_mag",nil,10]
]
];
};
};
};
case "cop_polizeirat":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 11): {"Du bist kein Polizeirat!"};
default
{
["Polizeirat Waffen",
[
["arifle_MXM_Black_F",nil,10],
["arifle_MX_Black_F",nil,10],
["arifle_MXC_Black_F",nil,10],
["arifle_MX_SW_Black_F",nil,10],
["srifle_DMR_05_blk_F",nil,10],
["SMG_02_F",nil,10],
["srifle_EBR_F",nil,10],
["arifle_TRG21_F",nil,10],
["srifle_DMR_02_F",nil,10],
["srifle_DMR_03_F",nil,10],
["srifle_DMR_04_F",nil,10],
["srifle_DMR_06_camo_F",nil,10],
["MMG_01_hex_F",nil,10],
["MMG_02_black_F",nil,10],
["hgun_Pistol_Signal_F",nil,10],
["SmokeShellBlue","CE-Gas",10],
["HandGrenade_Stone","Blendgranate",10],
["SmokeShellOrange","Rauchgranaten",10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["20Rnd_762x51_Mag",nil,10],
["30Rnd_9x21_Mag",nil,10],
["10Rnd_93x64_DMR_05_Mag",nil,10],
["6Rnd_RedSignal_F",nil,10],
["10Rnd_127x54_Mag",nil,10],
["10Rnd_338_Mag",nil,10],
["150Rnd_93x64_Mag",nil,10],
["130Rnd_338_Mag",nil,10],
["100Rnd_65x39_caseless_mag",nil,10]
]
];
};
};
};
case "cop_polizeioberrat":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 12): {"Du bist kein Polizeioberrat!"};
default
{
["Polizeioberrat Waffen",
[
["arifle_MXM_Black_F",nil,10],
["arifle_MX_Black_F",nil,10],
["arifle_MXC_Black_F",nil,10],
["arifle_MX_SW_Black_F",nil,10],
["srifle_DMR_05_blk_F",nil,10],
["SMG_02_F",nil,10],
["srifle_EBR_F",nil,10],
["arifle_TRG21_F",nil,10],
["srifle_DMR_02_F",nil,10],
["srifle_DMR_03_F",nil,10],
["srifle_DMR_04_F",nil,10],
["srifle_DMR_06_camo_F",nil,10],
["MMG_01_hex_F",nil,10],
["MMG_02_black_F",nil,10],
["hgun_Pistol_Signal_F",nil,10],
["SmokeShellBlue","CE-Gas",10],
["HandGrenade_Stone","Blendgranate",10],
["SmokeShellOrange","Rauchgranaten",10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["20Rnd_762x51_Mag",nil,10],
["30Rnd_9x21_Mag",nil,10],
["10Rnd_93x64_DMR_05_Mag",nil,10],
["6Rnd_RedSignal_F",nil,10],
["10Rnd_127x54_Mag",nil,10],
["10Rnd_338_Mag",nil,10],
["150Rnd_93x64_Mag",nil,10],
["130Rnd_338_Mag",nil,10],
["100Rnd_65x39_caseless_mag",nil,10]
]
];
};
};
};
case "cop_polizeipräsident":
{
switch(true) do
{
case (playerSide !=west): {"Du bist kein Polizist"};
case (__GETC__(life_coplevel) < 13): {"Du bist kein Polizeidirektor!"};
default
{
["Polizeipräsident Waffen",
[
["arifle_MXM_Black_F",nil,10],
["arifle_MX_Black_F",nil,10],
["arifle_MXC_Black_F",nil,10],
["arifle_MX_SW_Black_F",nil,10],
["srifle_DMR_05_blk_F",nil,10],
["SMG_02_F",nil,10],
["srifle_EBR_F",nil,10],
["arifle_TRG21_F",nil,10],
["srifle_DMR_02_F",nil,10],
["srifle_DMR_03_F",nil,10],
["srifle_DMR_04_F",nil,10],
["srifle_DMR_06_camo_F",nil,10],
["MMG_01_hex_F",nil,10],
["MMG_02_black_F",nil,10],
["hgun_Pistol_Signal_F",nil,10],
["srifle_GM6_F",nil,10],
["SmokeShellBlue","CE-Gas",10],
["HandGrenade_Stone","Blendgranate",10],
["SmokeShellOrange","Rauchgranaten",10],
["30Rnd_65x39_caseless_mag","6,5mm Scharf",10],
["20Rnd_762x51_Mag",nil,10],
["30Rnd_9x21_Mag",nil,10],
["10Rnd_93x64_DMR_05_Mag",nil,10],
["6Rnd_RedSignal_F",nil,10],
["10Rnd_127x54_Mag",nil,10],
["10Rnd_338_Mag",nil,10],
["150Rnd_93x64_Mag",nil,10],
["130Rnd_338_Mag",nil,10],
["100Rnd_65x39_caseless_mag",nil,10],
["5Rnd_127x108_Mag",nil,10]
]
];
};
};
};
case "rebel":
{
switch(true) do
{
case (playerSide != civilian): {"Du bist kein Zivilist!"};
case (!license_civ_rebel): {"Du besitz keine Rebellen Lizenz!"};
default
{
["Mohammed's Waffen Laden",
[
["arifle_TRG20_F",nil,350000],
["arifle_Katiba_F",nil,300000],
["srifle_EBR_F",nil,375000],
["SMG_01_F",nil,100000],
["hgun_Pistol_heavy_01_MRD_F",nil,25000],
["hgun_P07_F",nil,15000],
["srifle_DMR_01_F",nil,300000],
["arifle_SDAR_F",nil,75000],
["acc_flashlight",nil,7500],
["acc_pointer_IR",nil,15000],
["optic_ACO_grn",nil,5000],
["optic_Aco_smg",nil,5000],
["optic_Holosight",nil,3600],
["optic_Hamr",nil,10500],
["optic_DMS",nil,40000],
["30Rnd_9x21_Mag",nil,200],
["16Rnd_9x21_Mag",nil,150],
["SmokeShellGreen",nil,2500],
["muzzle_snds_M",nil,10000],
["20Rnd_556x45_UW_mag",nil,125],
["30Rnd_45ACP_Mag_SMG_01",nil,500],
["20Rnd_762x51_Mag","MK18 Magazin",500],
["11Rnd_45ACP_Mag",nil,1000],
["30Rnd_556x45_Stanag",nil,300],
["10Rnd_762x51_Mag","Rahim Magazin",500],
["30Rnd_65x39_caseless_green",nil,275]
]
];
};
};
};
case "gun":
{
switch(true) do
{
case (playerSide != civilian): {"Du bist kein Zivilist!"};
case (!license_civ_gun): {"Du hast keinen Waffenschein!"};
default
{
["Kevins Knarrenladen",
[
["hgun_P07_F",nil,15000],
["hgun_Pistol_heavy_02_F",nil,20000],
["hgun_ACPC2_F",nil,17500],
["hgun_PDW2000_F",nil,30000],
["optic_ACO_grn_smg",nil,2500],
["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): {"Du bist kein Donator!"};
case (__GETC__(life_donator) < 1):
{
["Donator Shop",
[
["hgun_P07_F",nil,1250],
["hgun_PDW2000_F",nil,6500],
["hgun_ACPC2_F",nil,11500],
["optic_ACO_grn_smg",nil,750],
["hgun_pistol_heavy_01_F",nil,6000],
["optic_MRCO",nil,10000],
["ToolKit",nil,50],
["NVGoggles",nil,350],
["Rangefinder",nil,5000],
["itemgps",nil,50],
["FirstAidKit",nil,25],
["9Rnd_45ACP_Mag",nil,45],
["16Rnd_9x21_Mag",nil,25],
["30Rnd_9x21_Mag",nil,75]
]
];
};
case (__GETC__(life_donator) < 2):
{
["Island Life Donator Shop Rang 2",
[
["hgun_P07_F",nil,500],
["hgun_PDW2000_F",nil,6500],
["hgun_pistol_heavy_01_F",nil,6000],
["arifle_Mk20C_plain_F",nil,45000],
["optic_ACO_grn_smg",nil,750],
["optic_MRCO",nil,10000],
["NVGoggles",nil,350],
["ToolKit",nil,100],
["itemGPS",nil,100],
["FirstAidKit",nil,25],
["Rangefinder",nil,5000],
["16Rnd_9x21_Mag",nil,25],
["30Rnd_9x21_Mag",nil,75],
["11Rnd_45ACP_Mag",nil,85],
["30Rnd_556x45_Stanag",nil,125]
]
];
};
case (__GETC__(life_donator) < 3):
{
["Söldner Waffen",
[
["hgun_P07_F",nil,5000],
["hgun_PDW2000_F",nil,10000],
["arifle_TRG21_F",nil,250000],
["arifle_Mk20C_F",nil,100000],
["arifle_Mk20_F",nil,125000],
["arifle_Mk20_GL_F",nil,150000],
["srifle_DMR_01_F",nil,250000],
["srifle_EBR_F",nil,225000],
["arifle_Katiba_F",nil,25000],
["hgun_pistol_heavy_01_F",nil,12500],
["hgun_ACPC2_F",nil,13500],
["optic_ACO_grn",nil,7500],
["optic_MRCO",nil,10000],
["optic_LRPS",nil,50000],
["optic_DMS",nil,25000],
["Rangefinder",nil,15000],
["SmokeShellGreen",nil,2500],
["1Rnd_SmokeGreen_Grenade_shell",nil,5000],
["muzzle_snds_L",nil,5000],
["muzzle_snds_acp",nil,10000],
["muzzle_snds_M",nil,30000],
["muzzle_snds_H",nil,20000],
["NVGoggles_INDEP",nil,2500],
["16Rnd_9x21_Mag",nil,25],
["30Rnd_65x39_caseless_green",nil,750],
["10Rnd_762x51_Mag",nil,750],
["20Rnd_762x51_Mag",nil,750],
["30Rnd_9x21_Mag",nil,75],
["11Rnd_45ACP_Mag",nil,85],
["9Rnd_45ACP_Mag",nil,100],
["30Rnd_556x45_Stanag",nil,125]
]
];
};
};
};
case "genstore":
{
["Generalstore",
[
["Binocular",nil,150],
["ItemGPS",nil,100],
["ItemMap",nil,50],
["ItemCompass",nil,50],
["ItemWatch",nil,50],
["ToolKit",nil,250],
["FirstAidKit",nil,150],
["NVGoggles",nil,1500],
["Chemlight_red",nil,300],
["Chemlight_yellow",nil,300],
["Chemlight_green",nil,300],
["Chemlight_blue",nil,300]
]
];
};
case "uranium":
{
switch(true) do
{
case (playerSide != civilian): {"Du bist kein Zivilist"};
case (!license_civ_uranium): {"Du benötigst eine Uran-Lizenz"};
default
{
["Uran Händler",
[
["ToolKit",nil,200],
["FirstAidKit",nil,100],
["U_I_HeliPilotCoveralls","Strahlenschutzanzug",50000]
]
];
};
};
};
};
Alles anzeigen
NPC Init:
Code
this enableSimulation false; this allowDamage false; this addAction["<t color='#ADFF2F'>ATM</t>",life_fnc_atmMenu,"",0,FALSE,FALSE,"",' vehicle player == player && player distance _target < 4 ']; this addAction["Item Shop",life_fnc_virt_menu,"cop"]; this allowDamage false; this addAction["Visiere und Sonstiges",life_fnc_weaponShopMenu,"cop_visier"]; this addAction["Kleidung",life_fnc_clothingMenu,"cop"]; this addAction["Anwärter Store",life_fnc_weaponShopMenu,"cop_polizeianwärter"]; this addAction["Beamten Store",life_fnc_weaponShopMenu,"cop_polizeibeamter"]; this addAction["Meister Store",life_fnc_weaponShopMenu,"cop_polizeimeister"]; this addAction["Hauptmeister Store",life_fnc_weaponShopMenu,"cop_polizeihauptmeister"]; this addAction["Kommissar Store",life_fnc_weaponShopMenu,"cop_kommissar"]; this addAction["Oberkommissar Store",life_fnc_weaponShopMenu,"cop_oberkommissar"]; this addAction["Hauptkommissar Store",life_fnc_weaponShopMenu,"cop_hauptkommissar"]; this addAction["Bundesgrenzschutz Store",life_fnc_weaponShopMenu,"cop_bundesgrenzschutz"]; this addAction["SEK Store",life_fnc_weaponShopMenu,"cop_sek"]; this addAction["SEK Leiter Store",life_fnc_weaponShopMenu,"cop_sekleiter"]; this addAction["Polizeirat Store",life_fnc_weaponShopMenu,"cop_polizeirat"]; this addAction["Polizeioberrat Store",life_fnc_weaponShopMenu,"cop_polizeioberrat"]; this addAction["Polizeipräsident",life_fnc_weaponShopMenu,"cop_polizeipräsident"]; this addAction[format["%1 ($%2)",["license_cop_air"] call life_fnc_varToStr,[(["cair"] call life_fnc_licensePrice)] call life_fnc_numberText],life_fnc_buyLicense,"cair",0,false,false,"",' !license_cop_air && playerSide == west ']; this addAction[format["%1 ($%2)",["license_cop_cg"] call life_fnc_varToStr,[(["cg"] call life_fnc_licensePrice)] call life_fnc_numberText],life_fnc_buyLicense,"cg",0,false,false,"",' !license_cop_cg && playerSide == west '];
Bitte um schnelle Hilfe, habe mir die Datei schon echt oft nach Fehlern angesehen, habe aber nichts gefunden.
MFG Jake