humnn.... Try this:
PHP Code:
public plugin_init()
{
register_event("DeathMsg", "event_death", "a")
}
PHP Code:
public event_death()
{
g_hasdeath[id] == true
}
And put a commando.
PHP Code:
if(g_hasdeath[id] == true ) {
Your command
}
Or
PHP Code:
new body = find_dead_body(id)
if(!fm_is_valid_ent(body))
{
}
PHP Code:
stock find_dead_body(id)
{
static Float:origin[3]
pev(id, pev_origin, origin)
new ent
static classname[32]
while((ent = fm_find_ent_in_sphere(ent, origin, get_pcvar_float(cvar_revival_dis))) != 0)
{
pev(ent, pev_classname, classname, 31)
if(equali(classname, "fake_corpse") && fm_is_ent_visible(id, ent))
return ent
}
return 0
}