Add notification messages for group changes

This commit is contained in:
ebaydayz
2016-11-08 16:39:50 -05:00
parent ba43900036
commit 32b9c84784
9 changed files with 36 additions and 26 deletions

View File

@@ -3,8 +3,14 @@ private ["_add","_inviter","_recipient","_uid","_unit"];
_add = _this select 0;
_uid = _this select 1;
if (typeName _add == "OBJECT") exitWith {
(group player) selectLeader _add;
if (typeName _add == "SCALAR") exitWith {
switch _add do {
case -1: { (group player) selectLeader _uid; }; //Promote
case 1: { systemChat format[localize "STR_EPOCH_PLAYER_JOINED",_uid]; };
case 2: { systemChat format[localize "STR_EPOCH_PLAYER_KICKED",name (_uid call dayz_getPlayer)]; };
case 3: { systemChat format[localize "STR_EPOCH_PLAYER_LEFT",_uid]; };
case 4: { localize "STR_EPOCH_GROUP_DISBANDED" call dayz_rollingMessages; };
};
};
// Update active invites on all machines with the change