it gives me an error while compilingJinto said:why do it that way. you can simplify it by doing.
Code:set_task(0.5,"MyFunction",id,"","b")
public client_death(killer,victim,.......)
{
set_task(0.1,"undo",victim)
}
eh and how u do that then with the deathMsg ?Jinto said:Well I havn't done anything with amxx in a while but last I checked there was no Client_Death forward. You have to hook the DeathMsg event using register_event.
register_event( "DeathMsg","dead","b")
public dead (id)
{
new Victim = read_data(2)
set_task(0.1,"dead_pall",Victim)
return PLUGIN_HANDLED
}