function on_player_death()
{
var trash =
['1 blin(']
var trashrng = trash[Math.floor(Math.random()*trash.length)];
attacker = Event.GetInt("attacker");
attacker_index = Entity.GetEntityFromUserID(attacker);
victim = Event.GetInt("userid");
victim_index = Entity.GetEntityFromUserID(victim);
victim_name = Entity.GetName(victim_index);
if (attacker_index == Entity.GetLocalPlayer())
{
Global.ExecuteCommand("say " + " " + trashrng + "\n");
}
}
Global.RegisterCallback("player_death", "on_player_death")