• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

kill message

Status
Not open for further replies.
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";
 
Status
Not open for further replies.
Back
Top