mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Better checks for removing the owner of plots/doors
Revertf0e8796996Partial revert:2f0774d531 (diff-c3aa237d9007054fc3a724116a5d9f1a)This is a better check for removing the owner of plots/doors based on conversations on discord. Plot/door owner can remove them selves plot/door friends can't remove plot owner plot/door admins can remove anyone
This commit is contained in:
@@ -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 || (_x getVariable["CharacterID","0"] == dayz_characterID) || ((((_x getVariable ["plotfriends",[]]) select 0) select 0) == dayz_playerUID)) exitWith {
|
||||
if (_x getVariable["ownerPUID","0"] == dayz_playerUID || (_x getVariable["CharacterID","0"] == dayz_characterID)) exitWith {
|
||||
_hasPole = true;
|
||||
};
|
||||
} count (entities "Plastic_Pole_EP1_DZ");
|
||||
|
||||
Reference in New Issue
Block a user