View previous topic :: View next topic |
Author |
Message |
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Tue Apr 14, 2015 10:03 am Post subject: Automatic Speed Hack with timer use button click |
|
|
Hello guys,
Is there someone can help to fix script below ?.
I put a automatic speed hack with timer 25 second, will change speed hack value 0.5 and after 25 seconds will reset to 1.
I have tried, when I click a button in a trainer, then speed hack work (with 0.5 value), it's show game running slowly. After 25 seconds game run normal, speed hack reset to 1.
But when i am going to next round game and click the button again, speed hack work, but not automatic reset to 1.
How to fix it ?
Code: |
function btnSPD_01lick(sender)
speedhack_setSpeed(0.5) -- set speed to 0.5
t.Enabled=true -- after 25 seconds start "resetSpeed()"
end
function resetSpeed()
if (t) then
t.Enabled=false
t.Destroy()
-- t=nil
end
speedhack_setSpeed(1) -- set speed to 1
end
t=createTimer(nil, false)
t.onTimer=resetSpeed
t.Interval=25000 -- 25 seconds
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Tue Apr 14, 2015 10:07 am Post subject: |
|
|
remove t.Destroy()
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Tue Apr 14, 2015 9:34 pm Post subject: |
|
|
Thanks Dark byte,
Now it work properly...
Regards
|
|
Back to top |
|
|
|