#define TASK_STOP 3876set_task(yourfloat, "stop_run", entity+TASK_STOP)// when ent disappeared/removed by youremove_task(entity+TASK_STOP)