Jump to content
Sign in to follow this  
Tansien

Example mission /w server-side logging of who-killed-who

Recommended Posts

Does anyone know if there is a mission/script with this functionality? It seems rather hard to actually log who-killed-who to the server logs...

Share this post


Link to post
Share on other sites

Try this, init.sqf:

TAG_KILLED_LOG = {
 if (isServer) then {diag_log format ["MURDER LOG: %1 WAS SHOT BY %2",_this select 0,_this select 1];};  
};

Init field of playable units:

this addMPEventHandler ["MPKilled",{_this spawn TAG_KILLED_LOG;}];

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×