You are on page 1of 1

function checkKeys(timer)

if (isKeyPressed(KeyForSpeedhack)) then
if lastspeed ~= 0 then
speedhack_setSpeed(SpeedHackAmount)
lastSpeed=0
end
else
if lastspeed ~= 0 then
speedhack_setSpeed(0.8)
lastSpeed=0
end
end
end

t=createTimer(nil)
timer_setInterval(t, 1)
timer_onTimer(t, checkKeys)
timer_setEnabled(t, true)

You might also like