Update group dialog

This commit is contained in:
ebaydayz
2016-10-28 20:10:10 -04:00
parent c2e63f63ae
commit dbb9e97efc
4 changed files with 8 additions and 10 deletions

View File

@@ -13,3 +13,5 @@ if (isNull _target or _target == player or player != leader group player) exitWi
PVDZ_Server_UpdateGroup = [2,player,_targetUID];
publicVariableServer "PVDZ_Server_UpdateGroup";
_myGroup call dayz_selectGroupMember; //update lbCurSel change

View File

@@ -35,7 +35,7 @@ while {!isNull findDisplay 80000} do {
_leaveButton ctrlShow true;
if (player == _leader) then {_disbandButton ctrlShow true};
} else {
{_x ctrlShow false} count [_disbandButton,_leaveButton];
{_x ctrlShow false} count [_disbandButton,_leaveButton,_kickButton,_promoteButton];
};
_hasInvite = false;

View File

@@ -11,13 +11,9 @@ _group = group player;
_target = _uid call dayz_getPlayer;
if (player == leader _group && {!isNull _target} && {_target != player}) then {
if (local _group) then {
_group selectLeader _target; //group must be local
_group selectLeader _target;
_promoteButton ctrlShow false;
_disbandButton ctrlShow false;
} else {
systemChat "Failed: Group must be local to do this";
};
} else {
_promoteButton ctrlShow false;
};

View File

@@ -710,5 +710,5 @@ if (!isDedicated) then {
DZE_Quarantine = false;
DZE_InRadiationZone = false;
DZE_myVehicle = objNull;
dayz_groupNameTags = false;
dayz_groupNameTags = true;
};