added plotManagement by DevZupa

This commit is contained in:
Bruce
2016-04-29 23:02:25 +02:00
parent 89eea668f5
commit 98bfee8bdf
19 changed files with 843 additions and 18 deletions

View File

@@ -42,13 +42,30 @@ if(_IsNearPlot == 0) then {
// check if friendly to owner
if(dayz_characterID == _ownerID) then {
_canBuildOnPlot = true;
_canBuildOnPlot = true;
} else {
_friendlies = player getVariable ["friendlyTo",[]];
// check if friendly to owner
if(_ownerID in _friendlies) then {
_canBuildOnPlot = true;
// plotManagement //
if( DZE_plotManagement ) then {
_friendlies = _nearestPole getVariable ["plotfriends",[]];
_fuid = [];
{
_friendUID = _x select 0;
_fuid = _fuid + [_friendUID];
} forEach _friendlies;
// check if friendly to owner
if(dayz_characterID in _fuid) then {
_canBuildOnPlot = true;
};
} else {
// plotManagement //
_friendlies = player getVariable ["friendlyTo",[]];
// check if friendly to owner
if(_ownerID in _friendlies) then {
_canBuildOnPlot = true;
};
// plotManagement //
};
// plotManagement //
};
};