Advertisement
captmicro

Untitled

Dec 11th, 2011
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. local hwnd = 0
  2. while (hwnd == 0) do
  3. hwnd = FindWindow("Counter-Strike Source")
  4. end
  5.  
  6. Sleep(1500)
  7.  
  8. local procID = GetProcessId(hwnd)
  9. WriteConsole("Process ID: " .. tostring(procID) .. "\n")
  10. local procHandle = OpenProcess(PROCESS_ALL_ACCESS, procID)
  11. WriteConsole("Process Handle: " .. tostring(procHandle) .. " [" .. tostring(PROCESS_ALL_ACCESS) .. "]\n")
  12.  
  13. local client = GetBaseAddress(procHandle, "client.dll")
  14. local r_drawothermodels = client + 0x5690D0
  15.  
  16. while (IsKeyDown(VK_END) == 0) do --END
  17. if (IsKeyDown(VK_F12) == 1) then
  18. if (ReadInt(procHandle, r_drawothermodels) == 2) then
  19. WriteInt(procHandle, r_drawothermodels, 1)
  20. WriteConsole("wallhack off\n")
  21. else
  22. WriteInt(procHandle, r_drawothermodels, 2)
  23. WriteConsole("wallhack on\n")
  24. end
  25. end
  26. Sleep(100)
  27. end
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement