View Single Post
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 04-26-2010 , 07:18   Re: Noslowdown Jumps on it, nothing happen.
Reply With Quote #5

PHP Code:
    actionNoSlowDown(id)
  {
              new 
taskid TASK_NOSLOW id;
              
              
g_no_slow_down[id] = true;
              
              if (
task_exists(taskid))
              {
                          
remove_task(taskid);
              }
              
              
set_task(0.1"taskSlowDown"taskid);
  } 
PHP Code:
    public taskSlowDown(id)
  {
              
id -= TASK_NOSLOW;
              
              
g_no_slow_down[id] = false;
  } 
Try this for instance.Note that i didnt test it.
SpeeDeeR is offline