Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1.  
  2. function checkKeys(timer)
  3. if (isKeyPressed(VK_Z)) then if lastspeed ~= 10 then speedhack_setSpeed(10) lastSpeed=10 end
  4. else if lastspeed ~= 1 then speedhack_setSpeed(1) lastSpeed=1 end
  5. end
  6.  
  7. end
  8.  
  9. t=createTimer(nil)
  10. timer_setInterval(t, 100)
  11. timer_onTimer(t, checkKeys)
  12. timer_setEnabled(t, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement