mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Exclude DZE_PlotManagementAdmins from build checks (safeZone/no build near)
This commit is contained in:
@@ -102,6 +102,7 @@ _buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_buildables","DZ_s
|
|||||||
_center = if (isNull _nearestPole) then {_pos} else {_nearestPole};
|
_center = if (isNull _nearestPole) then {_pos} else {_nearestPole};
|
||||||
if ((count (nearestObjects [_center,_buildables,_distance])) >= DZE_BuildingLimit) exitWith {dayz_actionInProgress = false; format[localize "str_epoch_player_41",_distance] call dayz_rollingMessages; [false, _isPole];};
|
if ((count (nearestObjects [_center,_buildables,_distance])) >= DZE_BuildingLimit) exitWith {dayz_actionInProgress = false; format[localize "str_epoch_player_41",_distance] call dayz_rollingMessages; [false, _isPole];};
|
||||||
|
|
||||||
|
if !(dayz_playerUID in DZE_PlotManagementAdmins) then {
|
||||||
_text = getText (configFile >> 'CfgMagazines' >> _item >> 'displayName');
|
_text = getText (configFile >> 'CfgMagazines' >> _item >> 'displayName');
|
||||||
|
|
||||||
_buildCheck = call _checkClass;
|
_buildCheck = call _checkClass;
|
||||||
@@ -120,6 +121,7 @@ if ((count DZE_NoBuildNear) > 0) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if !(_canBuild) exitWith {dayz_actionInProgress = false; format [localize "STR_EPOCH_PLAYER_167",_text,DZE_NoBuildNearDistance,typeOf (_near select 0)] call dayz_rollingMessages; [false, _isPole];};
|
if !(_canBuild) exitWith {dayz_actionInProgress = false; format [localize "STR_EPOCH_PLAYER_167",_text,DZE_NoBuildNearDistance,typeOf (_near select 0)] call dayz_rollingMessages; [false, _isPole];};
|
||||||
|
};
|
||||||
|
|
||||||
if (_toolCheck) then {
|
if (_toolCheck) then {
|
||||||
_require = getArray (configFile >> "cfgMagazines" >> _item >> "ItemActions" >> "Build" >> "require");
|
_require = getArray (configFile >> "cfgMagazines" >> _item >> "ItemActions" >> "Build" >> "require");
|
||||||
|
|||||||
Reference in New Issue
Block a user