Advertisement
testhk

lastspeed

Nov 21st, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. lastSpeed=1;
  2.  
  3. function checkKeys(timer)
  4. if (isKeyPressed(VK_Key)) then if lastspeed ~= 10 then speedhack_setSpeed(100) lastSpeed=10 end
  5. else if lastspeed ~= 1 then speedhack_setSpeed(1) lastSpeed=1 end
  6. end
  7.  
  8. end
  9.  
  10. t=createTimer(nil)
  11. timer_setInterval(t, 100)
  12. timer_onTimer(t, checkKeys)
  13. timer_setEnabled(t, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement