Hi,
im trying to fake a death of a player...
It's knida working now but sometimes the animation is played twice or does not fit correctly (if you see the code you know why

)
Code:
//ham_killed
set_pev(id,pev_gaitsequence,102);
set_task(1.0,"anim",id+TASK_ANIM);
public anim(id) {
id -= TASK_ANIM;
set_pev(id,pev_sequence,102);
}
Any ideas how to set the animations to fake a death correctly?