Raised This Month: $ Target: $400
 0% 

[Help] Player Trail


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mrhellish
Junior Member
Join Date: Jun 2010
Old 11-16-2011 , 04:53   Re: [Help] Player Trail
Reply With Quote #7

Quote:
Originally Posted by Pattinho View Post
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(idpev_velocityvel);
    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
mrhellish is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode