mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-03 10:59:19 +03:00
Prevent non-leader from disbanding group
This commit is contained in:
1 parent
4317a6459a
commit
4c6e2454c3
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
||||
private "_group";
|
||||
|
||||
_group = group player;
|
||||
if (count (units _group) == 1 or (!isNil "dayz_groupDisbandThread" && {!scriptDone dayz_groupDisbandThread})) exitWith {};
|
||||
if (count (units _group) == 1 or player != leader _group or (!isNil "dayz_groupDisbandThread" && {!scriptDone dayz_groupDisbandThread})) exitWith {};
|
||||
|
||||
dayz_groupDisbanded = nil;
|
||||
PVDZ_Server_UpdateGroup = [4,player];
|
||||
|
||||
Reference in new issue
Block a user