Add DZE_limitPlots so admins can limit plot poles to 1 per UID.

This adds DZE_limitPlots where admins can restrict a player to only
having 1 plot pole. Disabled by default.
This commit is contained in:
oiad
2017-03-23 22:39:22 +13:00
parent 665ecd9146
commit 73899d520f
5 changed files with 24 additions and 2 deletions

View File

@@ -605,6 +605,19 @@ if (!isDedicated) then {
[(format ["%1<br />%2<br />%3<br />%4",death_1,death_2,death_3,death_4]),(safeZoneX + _offset),safeZoneY,10,0,0,8000] spawn BIS_fnc_dynamicText;
};
fnc_plotCheck = {
private ["_hasPole","_plotFriends"];
_hasPole = false;
{
_plotFriends = _x getVariable ["plotfriends",[]];
if (((_plotFriends select 0) select 0) == dayz_playerUID) exitWith {_hasPole = true;};
} count (entities "Plastic_Pole_EP1_DZ");
_hasPole
};
dayz_originalPlayer = player;
// database trader menu