From 7a11b508e1c633eb419f76dcdcf7e44cea785f0e Mon Sep 17 00:00:00 2001 From: icomrade Date: Sat, 30 Apr 2016 18:05:58 -0400 Subject: [PATCH] No building in trader string needs localization --- SQF/dayz_code/compile/dze_buildChecks.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SQF/dayz_code/compile/dze_buildChecks.sqf b/SQF/dayz_code/compile/dze_buildChecks.sqf index 3bb1c62e0..5696adca1 100644 --- a/SQF/dayz_code/compile/dze_buildChecks.sqf +++ b/SQF/dayz_code/compile/dze_buildChecks.sqf @@ -6,6 +6,8 @@ _item = _this select 1; _toolCheck = _this select 2; _classname = getText (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "create"); _requireplot = DZE_requireplot; +if(!canbuild) exitWith {DZE_ActionInProgress = false; "Cannot build in a trader city." call dayz_rollingMessages; [false, false];}; + if(isNumber (configFile >> "CfgVehicles" >> _classname >> "requireplot")) then { _requireplot = getNumber(configFile >> "CfgVehicles" >> _classname >> "requireplot"); };