This commit is contained in:
Skaronator
2014-01-17 18:10:55 +01:00
parent 4715a23233
commit 89a5a3b459
2 changed files with 5 additions and 7 deletions

View File

@@ -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;

View File

@@ -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];
}; };