mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Hide disband button after player loses leader
This commit is contained in:
@@ -32,9 +32,15 @@ while {!isNull findDisplay 80000} do {
|
||||
lbSort _myGroup;
|
||||
|
||||
if (lbSize _myGroup > 1) then {
|
||||
if (isNil "dayz_groupLeaveThread" or {scriptDone dayz_groupLeaveThread}) then {_leaveButton ctrlShow true;};
|
||||
if (isNil "dayz_groupLeaveThread" or {scriptDone dayz_groupLeaveThread}) then {
|
||||
_leaveButton ctrlShow true;
|
||||
} else {
|
||||
_leaveButton ctrlShow false;
|
||||
};
|
||||
if (player == _leader && (isNil "dayz_groupDisbandThread" or {scriptDone dayz_groupDisbandThread})) then {
|
||||
_disbandButton ctrlShow true;
|
||||
} else {
|
||||
_disbandButton ctrlShow false;
|
||||
};
|
||||
} else {
|
||||
{_x ctrlShow false} count [_disbandButton,_leaveButton,_kickButton,_promoteButton];
|
||||
|
||||
Reference in New Issue
Block a user