Skilled Illusionist
- Joined
- Jun 19, 2014
- Messages
- 315
- Reaction score
- 71
private["_agent","_uid","_uid2"];
_agent = _this select 0;
_killer = _this select 1;
_uid = getClientUID (owner _agent);
_uid2 = getClientUID(owner _killer);
_agent setVariable ["bleedingsources","[]"];
_agent setVariable ["timeOfDeath",diag_tickTime];
if ( vehicle _agent != _agent ) then
{
_agent action ["Eject", vehicle _agent];
};
{
if (((getPosATL _agent) distance _x < 100) and (_agent != _x) and (_agent == _killer))then
{
diag_log format["!!! %1 !!! %2 !!!",getClientUID(owner _x),(name _x)];
};
if (isNull _killer) then
{
[_x,format["%1 died",(name _agent)],"colorAction"] call fnc_playerMessage;
}
else
{
if (_agent == _killer) then
{
[_x,format["%1 died",(name _agent)],"colorAction"] call fnc_playerMessage;
}
else
{
[_x,format["Player %2 was killed by %1",(name _killer),(name _agent)],"colorAction"] call fnc_playerMessage;
};
};
} forEach players;
if (_uid == "") exitWith
{
diag_log format["Disconnected player %1 was killed by %2",typeOf _agent, name _killer];
};
diag_log format["Player %1 was killed by %2 at %3",name _agent, name _killer,diag_tickTime];
if (DZ_MP_CONNECT) then
{
_agent call dbSavePlayerPrep;
dbServerSaveCharacter _agent;
dbKillCharacter _uid;
};
call it
init_Kill_Massege = compile preprocessFileLineNumbers "\scripts\Kill_Massege.sqf";
_agent = _this select 0;
_killer = _this select 1;
_uid = getClientUID (owner _agent);
_uid2 = getClientUID(owner _killer);
_agent setVariable ["bleedingsources","[]"];
_agent setVariable ["timeOfDeath",diag_tickTime];
if ( vehicle _agent != _agent ) then
{
_agent action ["Eject", vehicle _agent];
};
{
if (((getPosATL _agent) distance _x < 100) and (_agent != _x) and (_agent == _killer))then
{
diag_log format["!!! %1 !!! %2 !!!",getClientUID(owner _x),(name _x)];
};
if (isNull _killer) then
{
[_x,format["%1 died",(name _agent)],"colorAction"] call fnc_playerMessage;
}
else
{
if (_agent == _killer) then
{
[_x,format["%1 died",(name _agent)],"colorAction"] call fnc_playerMessage;
}
else
{
[_x,format["Player %2 was killed by %1",(name _killer),(name _agent)],"colorAction"] call fnc_playerMessage;
};
};
} forEach players;
if (_uid == "") exitWith
{
diag_log format["Disconnected player %1 was killed by %2",typeOf _agent, name _killer];
};
diag_log format["Player %1 was killed by %2 at %3",name _agent, name _killer,diag_tickTime];
if (DZ_MP_CONNECT) then
{
_agent call dbSavePlayerPrep;
dbServerSaveCharacter _agent;
dbKillCharacter _uid;
};
call it
init_Kill_Massege = compile preprocessFileLineNumbers "\scripts\Kill_Massege.sqf";