MCHubble Newbie cheater Reputation: 0
Joined: 07 Apr 2014 Posts: 18
|
Posted: Mon Apr 07, 2014 2:14 pm Post subject: Freeze Time with CH |
|
|
Hello, i want to know how the lua code looks like what can freeze the time of an game i already got something like this in that forum but i think i forgot anything. Heres the code:
lastSpeed=1;
function checkKeys(timer)
if (isKeyPressed(VK_P)) then
if lastspeed ~= 5 then
speedhack_setSpeed(5)
lastSpeed=5
end
else
if lastspeed ~= 1 then
speedhack_setSpeed(1)
lastSpeed=1
end
end
end
t=createTimer(nil)
timer_setInterval(t, 100)
timer_onTimer(t, checkKeys)
timer_setEnabled(t, true)
lastSpeed=1;
function checkKeys(timer)
if (isKeyPressed(VK_K)) then
if lastspeed ~= 0 then
speedhack_setSpeed(0)
lastSpeed=0
end
else
if lastspeed ~= 1 then
speedhack_setSpeed(1)
lastSpeed=1
end
end
end
t=createTimer(nil)
timer_setInterval(t, 100)
timer_onTimer(t, checkKeys)
timer_setEnabled(t, true)
|
|