I'm trying to create an event when the user commits a suicide, like HE explosion, falls, etc.
Changing the
client_death function (miscstats.sma), I have already detected when he dies of a HE explosion, with this code:
Code:
if (killer == victim)
{
new victim_name[32]
get_user_name(victim, victim_name, 31)
set_hudmessage(255, 0, 255, -1.0, 0.35, 0, 6.0, 6.0, 0.5, 0.15, -1)
ShowSyncHudMsg(0, g_center1_sync, "%s has lost the will to live...", victim_name)
play_sound("misc/suicide")
}
But I can't find how to detect when the player dies of a fall. Does anybody know?