Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not A_IsAdmin
- {
- Run *RunAs "%A_ScriptFullPath%"
- ExitApp
- }
- toggle = 0
- #MaxThreadsPerHotkey 2
- #SingleInstance, force
- SetWorkingDir, %A_ScriptDir%
- #Include, Memory.ahk
- F1::
- Toggle := !Toggle
- While Toggle
- {
- ProcessName := "ac_client.exe" ; AssultCube
- Address := 0x004E4DBC ; Player
- HP:= 0xF4 ; Health
- AM := 0x378 ; Ammo
- AM2 := 0x14 ; Ammo
- AM3 := 0x0 ; Ammo
- AR := 0x0 ; Armor
- hwnd := MemoryOpenFromName(ProcessName)
- Health := MemoryReadPointer(hwnd, Address, "int", 3, 1, HP) ; read the player's health
- Ammo := MemoryReadPointer(hwnd, Address, "int", 2 , 3, AM, AM2, AM3 ) ;ammo in clip
- Ammo := MemoryReadPointer(hwnd, Address, "int", 2 , 3, AM, AM2, AM3 ) ;ammo in clip
- MemoryClose(hwnd)
- ToolTip,% (Health~="16777\d{3}"?"You are Dead":"Health: " Health "`nAmmo: " Ammo),0,0
- }
Advertisement
Add Comment
Please, Sign In to add comment