Advertisement
Guest User

Untitled

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