From f0e87969968646e0ae6e9acbdf7e3fa31a4dfd35 Mon Sep 17 00:00:00 2001 From: oiad Date: Mon, 16 Oct 2017 00:04:59 +1300 Subject: [PATCH] Check if players are owner of other plots correctly This fixes the checking done not picking up that a player was the owner of the plot by the userlist on the plot when it wasn't them that placed it --- SQF/dayz_code/compile/dze_buildChecks.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/dze_buildChecks.sqf b/SQF/dayz_code/compile/dze_buildChecks.sqf index 667dd3522..c89c7e420 100644 --- a/SQF/dayz_code/compile/dze_buildChecks.sqf +++ b/SQF/dayz_code/compile/dze_buildChecks.sqf @@ -45,7 +45,7 @@ if (_isPole) then { _distance = DZE_PlotPole select 1; if (DZE_limitPlots && {!(dayz_playerUID in DZE_PlotManagementAdmins)}) then { { - if (_x getVariable["ownerPUID","0"] == dayz_playerUID or (_x getVariable["CharacterID","0"] == dayz_characterID)) exitWith { + if (_x getVariable["ownerPUID","0"] == dayz_playerUID || (_x getVariable["CharacterID","0"] == dayz_characterID) || ((((_x getVariable ["plotfriends",[]]) select 0) select 0) == dayz_playerUID)) exitWith { _hasPole = true; }; } count (entities "Plastic_Pole_EP1_DZ");