Quote:
Originally Posted by Atspulgs
there is
is_user_alive(id)
|
Code:
if( is_user_alive( index ) ) //alive
if( !is_user_alive( index ) ) //dead
But i think you're looking for deathmsg event.
Code:
public plugin_init()
register_event("DeathMsg", "e_death", "a", "1>0")
public e_death()
{
//player has died
new Killer = read_data(1)
new Victim = read_data(2)
}