Merge pull request #1686 from Bruce-LXXVI/pullrequest/plotManagement

Pullrequest/plot management
This commit is contained in:
icomrade
2016-05-01 11:05:54 -04:00
19 changed files with 844 additions and 18 deletions

View File

@@ -44,10 +44,29 @@ if(_IsNearPlot == 0) then {
};
} else {
if(!_isPole) then {
_friendlies = player getVariable ["friendlyTo",[]];
if(_ownerID in _friendlies) then {
_canBuild = true;
// plotManagement //
if( DZE_plotManagement ) then {
_friendlies = _nearestPole getVariable ["plotfriends",[]];
_fuid = [];
{
_friendUID = _x select 0;
_fuid = _fuid + [_friendUID];
} forEach _friendlies;
_builder = getPlayerUID player;
// check if friendly to owner
if(dayz_playerUID in _fuid) then {
_canBuild = true;
};
} else {
// plotManagement //
_friendlies = player getVariable ["friendlyTo",[]];
// check if friendly to owner
if(_ownerID in _friendlies) then {
_canBuild = true;
};
// plotManagement //
};
// plotManagement //
};
};
};