Uh
%detagged $= "MsgYourDeath" || %detagged $= "MsgClientKilled",
first of all I don't get this
Why are you putting an if statement block into a function...?
Also you need to use HandleClientDeath with the correct arguments, it's not HandleClientDeath::receive either, you use just function HandleClientDeath.