Advertisement
logicaltaco

lag

May 10th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. lastSpeed=1;
  2.  
  3. function checkKeys(timer)
  4. if (isKeyPressed(VK_E)) then if lastspeed ~= 10 then speedhack_setSpeed(10) 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