mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
Fix #991
This commit is contained in:
@@ -14,7 +14,8 @@ if (r_player_infected) then {
|
|||||||
|
|
||||||
//Send Death Notice
|
//Send Death Notice
|
||||||
//["PVDZE_plr_Died",[dayz_characterID,0,_body,_playerID,dayz_playerName,_infected]] call callRpcProcedure;
|
//["PVDZE_plr_Died",[dayz_characterID,0,_body,_playerID,dayz_playerName,_infected]] call callRpcProcedure;
|
||||||
PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,dayz_playerName,_infected];
|
|
||||||
|
PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,(toArray dayz_playerName),_infected];
|
||||||
publicVariableServer "PVDZE_plr_Died";
|
publicVariableServer "PVDZE_plr_Died";
|
||||||
|
|
||||||
_id = [player,20,true,getPosATL player] spawn player_alertZombies;
|
_id = [player,20,true,getPosATL player] spawn player_alertZombies;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ _characterID = _this select 0;
|
|||||||
_minutes = _this select 1;
|
_minutes = _this select 1;
|
||||||
_newObject = _this select 2;
|
_newObject = _this select 2;
|
||||||
_playerID = _this select 3;
|
_playerID = _this select 3;
|
||||||
_playerName = _this select 4;
|
_playerName = toString(_this select 4);
|
||||||
_infected = _this select 5;
|
_infected = _this select 5;
|
||||||
|
|
||||||
_victim = _newObject;
|
_victim = _newObject;
|
||||||
@@ -20,13 +20,10 @@ if (_killerName != "nil") then
|
|||||||
_weapon = _victim getVariable["AttackedByWeapon", "nil"];
|
_weapon = _victim getVariable["AttackedByWeapon", "nil"];
|
||||||
_distance = _victim getVariable["AttackedFromDistance", "nil"];
|
_distance = _victim getVariable["AttackedFromDistance", "nil"];
|
||||||
|
|
||||||
if (_victimName == _killerName) then
|
if (_victimName == _killerName) then {
|
||||||
{
|
|
||||||
_message = format["%1 killed himself",_victimName];
|
_message = format["%1 killed himself",_victimName];
|
||||||
_loc_message = format["PKILL: %1 killed himself", _victimName];
|
_loc_message = format["PKILL: %1 killed himself", _victimName];
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
_message = format["%1 was killed by %2 with weapon %3 from %4m",_victimName, _killerName, _weapon, _distance];
|
_message = format["%1 was killed by %2 with weapon %3 from %4m",_victimName, _killerName, _weapon, _distance];
|
||||||
_loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
|
_loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user