unlocked for xalos
You didn't unlock it FOR me, you unlocked it because I MADE you, because you're not supposed to lock suggestion threads / help threads.
Anyway, that HideKills add-on still calls the default onDeath, just with a message that doesn't show up. So it's only useful for hiding kills if you want to avoid chatspam. In a Murder Mystery situation, I can EASILY package clientcmdServerMessage:
package KillTracker
{
function clientcmdServerMessage(%event, %a, %b, %c, %d, %e, %f, %g, %h, %i, %j, %k, %l, %m, %n, %o, %p, %q, %r, %s, %t)
{
//%debug = 2;
Parent::clientcmdServerMessage(%event, %a, %b, %c, %d, %e, %f, %g, %h, %i, %j, %k, %l, %m, %n, %o, %p, %q, %r, %s, %t);
%trig = getTaggedString(getWord(%event, 0));
if(%debug >= 2)
echo("\""@%trig@" ("@firstWord(%event)@")\": \""@%a@"\", \""@%b@"\", \""@%c@"\", \""@%d@"\", \""@%e@"\"");
switch$(%trig)
{
case "MsgClientKilled":
if(%debug)
if(%c $= $Pref::Player::NetName)
echo("You killed "@%b@"!");
else
echo(%c@" killed "@%b@"!");
if(%c !$= $Pref::Player::NetName && %c !$= "")
clientcmdCenterPrint("<color:FFFFFF>"@%c@" killed "@%b@"!", 2);
else if(%c !$= "")
clientcmdCenterPrint("<color:FFFFFF>You killed "@%b@"!", 2);
else
clientcmdCenterPrint("<color:FFFFFF>"@%b@" died!", 2);
case "MsgYourDeath":
if(%debug)
echo("You were killed by "@%c@"!");
}
}
};
activatePackage("KillTracker");