mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 02:46:29 +03:00
Hide group buttons on use
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
private "_group";
|
||||
_group = units group player;
|
||||
|
||||
if (count _group == 1 or (!isNil "dayz_groupLeftThread" && {!scriptDone dayz_groupLeftThread})) exitWith {
|
||||
_this ctrlShow false;
|
||||
};
|
||||
if (count _group == 1 or (!isNil "dayz_groupLeaveThread" && {!scriptDone dayz_groupLeaveThread})) exitWith {};
|
||||
|
||||
dayz_groupLeft = nil;
|
||||
PVDZ_Server_UpdateGroup = [3,player];
|
||||
publicVariableServer "PVDZ_Server_UpdateGroup";
|
||||
|
||||
dayz_groupLeftThread = [] spawn {
|
||||
dayz_groupLeaveThread = [] spawn {
|
||||
//Wait for response from server to confirm group finished updating in DB
|
||||
waitUntil {!isNil "dayz_groupLeft"};
|
||||
[player] join grpNull;
|
||||
|
||||
Reference in New Issue
Block a user