Prevent non-leader from disbanding group

This commit is contained in:
ebaydayz
2016-11-06 15:28:59 -05:00
parent 4317a6459a
commit 4c6e2454c3

View File

@@ -1,7 +1,7 @@
private "_group"; private "_group";
_group = group player; _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; dayz_groupDisbanded = nil;
PVDZ_Server_UpdateGroup = [4,player]; PVDZ_Server_UpdateGroup = [4,player];