Add systemChat message when a new player joins the group

This commit is contained in:
ebaydayz
2016-10-31 17:30:03 -04:00
parent 1b3ed13a47
commit f21b5b74a7
8 changed files with 28 additions and 4 deletions

View File

@@ -27,6 +27,12 @@ if (!isNull _inviter) then {
_oldGroup = group player;
[player] joinSilent (group _inviter);
if (count (units _oldGroup) == 0) then {deleteGroup _oldGroup;};
{
_uid = getPlayerUID _x;
if !(_uid in dayz_myGroup) then {
dayz_myGroup set [count dayz_myGroup,_uid];
};
} count (units group player);
// Update saved group in DB
PVDZ_Server_UpdateGroup = [1,player];