Quote:
Originally Posted by Pattinho
Yeah with zero will be no trail and no but i will test it
Edit*
okay no way, the same problem
|
Hmm, try with set_task?
i think it will be sth like that:
PHP Code:
#define SOME_TASK 90218
public PreThink(id) {
static Float:vel[3], bool:settrail[33];
pev(id, pev_velocity, vel);
if (vel[0] == 0.0 && vel[0] == 0.0 && vel[0] == 0.0) {
settrail[id] = true;
if (task_exists(SOME_TASK+id)) remove_task(SOME_TASK+id);
else if (settrail[id]) {
set_task(255.0*0.1, "task_set_trail", SOME_TASK+id);
settrail[id] = false;
}
}
public task_set_trail(id) {
id-=SOME_TASK;
if (is_user_alive(id)) trail(id);
}
public client_disconnect(id) if (task_exists(SOME_TASK+id)) remove_task(SOME_TASK+id);
and make life 255