mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Add notification messages for group changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user