if (_shop in ["adac_clothing"] && {!(playerSide isEqualTo east)}) exitWith {hint localize "STR_Shop_NotaAdac"; closeDialog 0;};
Einfügen unter: if (_shop == "dive" && {!license_civ_dive}) exitWith {hint localize "STR_Shop_NotaDive"; closeDialog 0;};
Code: Beispiel
//Cop / Civ Pre Check
if (_shop in ["bruce","dive","reb","kart"] && {!(playerSide isEqualTo civilian)}) exitWith {hint localize "STR_Shop_NotaCiv"; closeDialog 0;};
if (_shop == "reb" && {!license_civ_rebel}) exitWith {hint localize "STR_Shop_NotaReb"; closeDialog 0;};
if (_shop == "cop" && {!(playerSide isEqualTo west)}) exitWith {hint localize "STR_Shop_NotaCop"; closeDialog 0;};
if (_shop == "dive" && {!license_civ_dive}) exitWith {hint localize "STR_Shop_NotaDive"; closeDialog 0;};
if (_shop in ["adac_clothing"] && {!(playerSide isEqualTo east)}) exitWith {hint localize "STR_Shop_NotaAdac"; closeDialog 0;};