Update group tags again

Also fixed wrong string name "STR_EPOCH_RADIO_CONTACT_LOST" thanks @oiad
This commit is contained in:
ebayShopper
2017-02-24 14:11:55 -05:00
parent 221b8cc4b9
commit 6736cd92ff
9 changed files with 41 additions and 27 deletions

View File

@@ -5,17 +5,33 @@ _uid = _this select 1;
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 -1: { //Promote
(group player) selectLeader _uid;
};
case 1: {
systemChat format[localize "STR_EPOCH_PLAYER_JOINED",_uid];
};
case 2: {
if (_uid == getPlayerUID player) then {
localize "STR_EPOCH_GROUP_KICKED" call dayz_rollingMessages;
terminate dayz_groupTags;
80000 cutText ["","PLAIN"];
} else {
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; };
case 3: {
systemChat format[localize "STR_EPOCH_PLAYER_LEFT",_uid];
if (count (player call dayz_filterGroup) == 1) then {
terminate dayz_groupTags;
80000 cutText ["","PLAIN"];
};
};
case 4: {
localize "STR_EPOCH_GROUP_DISBANDED" call dayz_rollingMessages;
terminate dayz_groupTags;
80000 cutText ["","PLAIN"];
};
};
};