Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetDebugPrivileges()
- local hwnd = 0
- while (hwnd == 0) do
- hwnd = FindWindow("Synergy")
- end
- local procID = GetProcessId(hwnd)
- WriteConsole("Process ID: " .. tostring(procID) .. "\n")
- local procHandle = OpenProcess(PROCESS_ALL_ACCESS, procID)
- WriteConsole("Process Handle: " .. tostring(procHandle) .. " [" .. tostring(PROCESS_ALL_ACCESS) .. "]\n")
- local engine = 0x100A0000 --GetBaseAddress(procHandle, "engine.dll")
- local sv_cheats = engine + 0x51C978
- local host_timescale = engine + 0x383E20
- local host_framerate = engine + 0x3839C0
- local r_drawothermodels = 0x5243C578
- local tmp = 0
- while (GetAsyncKey(VK_END) == 0) do --END
- if (GetAsyncKey(VK_UP) == 1) then
- tmp = ReadInt(procHandle, host_framerate)
- if (tmp < 10) then
- WriteInt(procHandle, host_framerate, tmp + 1)
- WriteConsole("speed " .. (tmp + 1) .. "x\n")
- end
- end
- if (GetAsyncKey(VK_DOWN) == 1) then
- tmp = ReadInt(procHandle, host_framerate)
- if (tmp > 1) then
- WriteInt(procHandle, host_framerate, tmp - 1)
- WriteConsole("speed " .. (tmp - 1) .. "x\n")
- end
- end
- if (GetAsyncKey(VK_F9) == 1) then
- if (ReadInt(procHandle, sv_cheats) == 0) then
- WriteInt(procHandle, sv_cheats, 1)
- WriteConsole("sv_cheats on\n")
- else
- WriteInt(procHandle, sv_cheats, 0)
- WriteConsole("sv_cheats off\n")
- end
- end
- if (GetAsyncKey(VK_F10) == 1) then
- if (ReadInt(procHandle, r_drawothermodels) == 1) then
- WriteInt(procHandle, sv_cheats, 2)
- WriteConsole("wallhack on\n")
- else
- WriteInt(procHandle, sv_cheats, 1)
- WriteConsole("wallhack off\n")
- end
- end
- Sleep(100)
- end
- CloseHandle(procHandle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement