Only run group tags loop when in a group

This commit is contained in:
ebayShopper
2017-02-13 14:27:40 -05:00
parent e8dd8fac63
commit 6e846847de
6 changed files with 15 additions and 3 deletions

View File

@@ -27,6 +27,10 @@ if (!isNull _inviter) then {
_oldGroup = group player;
[player] joinSilent (group _inviter);
if (count (units _oldGroup) == 0) then {deleteGroup _oldGroup;};
if (isNil "dayz_groupTags" or {scriptDone "dayz_groupTags"}) then {
dayz_groupTags = execVM "\z\addons\dayz_code\groups\groupTags.sqf";
};
// Update saved group in DB
PVDZ_Server_UpdateGroup = [1,player];