mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Add plotManagementMustBeClose config option
Setting false allows adding any online player to plot friends regardless of their distance from the pole.
This commit is contained in:
@@ -1,13 +1,14 @@
|
|||||||
private ["_close"];
|
private ["_close"];
|
||||||
lbClear 7001;
|
lbClear 7001;
|
||||||
_closePeople = player nearEntities ["CAManBase", 10];
|
_closePeople = player nearEntities ["CAManBase", 10];
|
||||||
|
if (!DZE_plotManagementMustBeClose) then {_closePeople = playableUnits};
|
||||||
Humans = [];
|
Humans = [];
|
||||||
{
|
{
|
||||||
if (_x isKindOf "Man" and !(_x isKindOf "zZombie_base")) then {
|
if (isPlayer _x) then {
|
||||||
_friendUID = getPlayerUID _x;
|
_friendUID = getPlayerUID _x;
|
||||||
_friendName = name _x;
|
_friendName = name _x;
|
||||||
Humans = Humans + [[_friendUID,_friendName]] ;
|
Humans = Humans + [[_friendUID,_friendName]] ;
|
||||||
lbAdd [7001, _friendName];
|
lbAdd [7001, _friendName];
|
||||||
};
|
};
|
||||||
} forEach _closePeople;
|
} count _closePeople;
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ Z_MoneyVariable = "cashMoney"; // If using a Single currency system, change this
|
|||||||
/////////// plotManagement Variables ///////////
|
/////////// plotManagement Variables ///////////
|
||||||
// see also: https://github.com/DevZupa/PlotManagement
|
// see also: https://github.com/DevZupa/PlotManagement
|
||||||
DZE_plotManagement = true;
|
DZE_plotManagement = true;
|
||||||
|
DZE_plotManagementMustBeClose = true; //Players must be within 10m of pole to be added as a plot friend.
|
||||||
DZE_PlotManagementAdmins = []; //Array of admin PlayerUIDs enclosed in quotations, UIDs in this list are able to access every pole's management menu and delete or build any buildable with a pole nearby
|
DZE_PlotManagementAdmins = []; //Array of admin PlayerUIDs enclosed in quotations, UIDs in this list are able to access every pole's management menu and delete or build any buildable with a pole nearby
|
||||||
DZE_MaxPlotFriends = 6; //Maximum number of friends allowed on a plot pole. (default 6)
|
DZE_MaxPlotFriends = 6; //Maximum number of friends allowed on a plot pole. (default 6)
|
||||||
// see also: https://github.com/RimBlock/Epoch/tree/master/A%20Plot%20for%20Life
|
// see also: https://github.com/RimBlock/Epoch/tree/master/A%20Plot%20for%20Life
|
||||||
|
|||||||
Reference in New Issue
Block a user