Code:
public client_death( killer, victim, wpnindex, hitplace, TK )
{
if( !killer && !wpnindex )
// falled
}
or using event :
Code:
public pluglin_init()
{
register_event( "DeathMsg", "eDeathMsg", "a" );
}
public eDeathMsg()
{
new iKiller = read_data(1);
new iVictim = read_data(2);
static sWeapon[16];
read_data( 4, sWeapon, sizeof( sWeapon ) - 1 );
if( iKiller == iVictim && equal( sWeapon, "world", 5 ) )
// suicide
if( !iKiller && equal( sWeapon, "world", 5 ) )
// falled
if( !iKiller && equal( sWeapon, "door", 4 ) )
// door
if( !iKiller && equal( sWeapon, "trigger_hurt", 12 ) )
// trigger
}
__________________