mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-21 15:40:50 +03:00
Added ZSCdefines. Checking plotfriends against dayz_playerUID.
This commit is contained in:
@@ -52,7 +52,7 @@ if(_IsNearPlot == 0) then {
|
|||||||
_fuid = _fuid + [_friendUID];
|
_fuid = _fuid + [_friendUID];
|
||||||
} forEach _friendlies;
|
} forEach _friendlies;
|
||||||
// check if friendly to owner
|
// check if friendly to owner
|
||||||
if(dayz_characterID in _fuid) then {
|
if(dayz_playerUID in _fuid) then {
|
||||||
_canBuildOnPlot = true;
|
_canBuildOnPlot = true;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ if(_IsNearPlot == 0) then {
|
|||||||
_fuid = _fuid + [_friendUID];
|
_fuid = _fuid + [_friendUID];
|
||||||
} forEach _friendlies;
|
} forEach _friendlies;
|
||||||
// check if friendly to owner
|
// check if friendly to owner
|
||||||
if(dayz_characterID in _fuid) then {
|
if(dayz_playerUID in _fuid) then {
|
||||||
_canBuildOnPlot = true;
|
_canBuildOnPlot = true;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ if(_IsNearPlot == 0) then {
|
|||||||
} forEach _friendlies;
|
} forEach _friendlies;
|
||||||
_builder = getPlayerUID player;
|
_builder = getPlayerUID player;
|
||||||
// check if friendly to owner
|
// check if friendly to owner
|
||||||
if(dayz_characterID in _fuid) then {
|
if(dayz_playerUID in _fuid) then {
|
||||||
_canBuild = true;
|
_canBuild = true;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
// plotManagement //
|
// plotManagement //
|
||||||
if(_isModularDoor) then {
|
if(_isModularDoor && DZE_plotManagement) then {
|
||||||
if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
|
if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
|
||||||
_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
|
_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
|
||||||
_IsNearPlot = count (_findNearestPoles);
|
_IsNearPlot = count (_findNearestPoles);
|
||||||
@@ -689,7 +689,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
|
|||||||
|
|
||||||
// plotManagement //
|
// plotManagement //
|
||||||
// add Scroll-Menu to Plotpole
|
// add Scroll-Menu to Plotpole
|
||||||
if (DZE_plotManagement && (s_player_plotManagement < 0) ) then {
|
if( DZE_plotManagement && (s_player_plotManagement < 0) ) then {
|
||||||
_adminList = ["0152"]; //TODO: Add admins here if you admins to able to manage all plotpoles
|
_adminList = ["0152"]; //TODO: Add admins here if you admins to able to manage all plotpoles
|
||||||
_owner = if(DZE_plotforLife)
|
_owner = if(DZE_plotforLife)
|
||||||
then { _cursorTarget getVariable ["ownerPUID","0"] }
|
then { _cursorTarget getVariable ["ownerPUID","0"] }
|
||||||
|
|||||||
@@ -114,5 +114,6 @@ class CfgAddons
|
|||||||
#include "Configs\CfgExtra\snappoints.hpp"
|
#include "Configs\CfgExtra\snappoints.hpp"
|
||||||
#include "external\R3F_Realism\R3F_Weight\R3F_CfgWeight.hpp"
|
#include "external\R3F_Realism\R3F_Weight\R3F_CfgWeight.hpp"
|
||||||
// plotManagement //
|
// plotManagement //
|
||||||
|
#include "Configs\RscDisplay\ZSCdefines.hpp"
|
||||||
#include "Configs\RscDisplay\plotManagement.hpp"
|
#include "Configs\RscDisplay\plotManagement.hpp"
|
||||||
// plotManagement //
|
// plotManagement //
|
||||||
|
|||||||
Reference in New Issue
Block a user