it's a to0 long code bro,. hehe.. but the thing is that it works on the first run of the system, i just point it in the same function, but it doesnt work.
algorithm is like below:
function playagain()
{
laod_entity();
}
action move()
{
......ent_animate
if enemy or player' health==0
ent_animate(death)
playagain();
}
function load_entity(){
ent_create("player.mdl", vector(0,-100,-10),move);
}