Snow_Flake

AssultCube Read

Aug 25th, 2014
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if not A_IsAdmin
  2. {
  3.     Run *RunAs "%A_ScriptFullPath%"
  4.     ExitApp
  5. }
  6.  
  7. toggle = 0
  8. #MaxThreadsPerHotkey 2
  9. #SingleInstance, force
  10. SetWorkingDir, %A_ScriptDir%
  11. #Include, Memory.ahk
  12.  
  13.  
  14. F1::
  15. Toggle := !Toggle
  16. While Toggle
  17.  {
  18.  
  19. ProcessName := "ac_client.exe" ; AssultCube
  20. Address := 0x004E4DBC ; Player
  21. HP:= 0xF4 ; Health
  22. AM := 0x378 ; Ammo
  23. AM2 := 0x14 ; Ammo
  24. AM3 := 0x0 ; Ammo
  25. AR := 0x0 ; Armor
  26.  
  27. hwnd := MemoryOpenFromName(ProcessName)
  28. Health := MemoryReadPointer(hwnd, Address, "int", 3, 1, HP) ; read the player's health
  29. Ammo := MemoryReadPointer(hwnd, Address, "int", 2 , 3, AM, AM2, AM3 ) ;ammo in clip
  30. Ammo := MemoryReadPointer(hwnd, Address, "int", 2 , 3, AM, AM2, AM3 ) ;ammo in clip
  31.  
  32. MemoryClose(hwnd)
  33.  
  34. ToolTip,% (Health~="16777\d{3}"?"You are Dead":"Health: " Health "`nAmmo: " Ammo),0,0
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment