Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NoMadMemory.au3>
$InfSp = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945F88BE55DC3CCCCCCCCCCCCCC558BEC51894D" )
$InfAmmo = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"7605E9870000008B55E8")
$200Hp = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCCCCCCCCCCCCCCCC558BEC51894DFC8D4508508B0D64")
$InstantRespawn = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"043B48087209C745B001000000EB07C745B0000000000FB655B085D20F85D4")
$OneHitKill = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCC558BEC51")
$IncreaseFire = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"8B4A043B48087209C745BC01000000EB07C745BC000000000FB655BC85D20F84A1")
$HitRange = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945C48B4DF464890D")
$000/000Hp = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCCCCCCCCCCCCCCCC558BEC51894DFC8D4508508B0D84")
$Invisible = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"74108B55FC8B8AA0020000")
$SpeedHackRun = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"006A038D95C8")
$SpeedHackWalk = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"6A038D853CFEFFFF50E8")
$ChannelNoLvl = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"75318B0D????????894DDC8B15????????8955D86A018B4DDCE8????????50")
$Suicide = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCCCCCCCCCCCCCCCC558BEC51894DFC8D4508508B0D70")
$NoLaser = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"6A218D4D9851E8")
#Region ### START Koda GUI section ### Form=c:\users\ivane\desktop\levani\noname\infsp,ammo...kxf
$Form1_1 = GUICreate("F.I.T", 429, 390, 198, 133)
$Button1 = GUICtrlCreateButton("Exit", 8, 304, 225, 81)
$Pic1 = GUICtrlCreatePic("C:\Users\Ivane\Desktop\levani\NoName\0875b981b2b1953c9e2d2f5edd94eddb.gif", 208, 0, 108, 108)
$Checkbox2 = GUICtrlCreateCheckbox("Inf Ammo", 24, 136, 89, 25)
$Pic2 = GUICtrlCreatePic("C:\Users\Ivane\Desktop\levani\NoName\post_thanks.gif", 280, 320, 137, 41)
$Icon1 = GUICtrlCreateIcon("C:\Users\Ivane\Desktop\levani\NoName\S4 League - Launcher.exe", -1, 320, 8, 105, 97)
$Pic3 = GUICtrlCreatePic("C:\Users\Ivane\Desktop\levani\NoName\f87e879b248a273ecf645f51a45013c5.jpg", 0, 0, 209, 113)
$Checkbox1 = GUICtrlCreateCheckbox("Inf Sp", 24, 160, 57, 25)
$Checkbox3 = GUICtrlCreateCheckbox("200 Hp", 24, 112, 105, 17)
$Checkbox4 = GUICtrlCreateCheckbox("Instant Respawn", 24, 184, 105, 25)
$Checkbox5 = GUICtrlCreateCheckbox("One Hit Kill", 24, 208, 105, 25)
$Checkbox6 = GUICtrlCreateCheckbox("Increase Fire", 24, 232, 81, 25)
$Checkbox7 = GUICtrlCreateCheckbox("Hit Range", 24, 256, 81, 25)
$Checkbox8 = GUICtrlCreateCheckbox("000/000 Hp", 136, 112, 97, 25)
$Checkbox9 = GUICtrlCreateCheckbox("Invisible", 136, 136, 81, 25)
$Checkbox10 = GUICtrlCreateCheckbox("Speed Hack Run", 136, 160, 105, 25)
$Checkbox11 = GUICtrlCreateCheckbox("Speed Hack Walk", 136, 184, 105, 25)
$Checkbox12 = GUICtrlCreateCheckbox("Channel No LvL", 136, 208, 105, 25)
$Checkbox13 = GUICtrlCreateCheckbox("Suicide", 136, 232, 113, 25)
$Checkbox14 = GUICtrlCreateCheckbox("No Laser", 136, 256, 113, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$Pid = ProcessExists("S4Client.exe")
$OPEN = _MemoryOpen ($Pid)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Exit
case $Checkbox1
If GUICtrlRead($Checkbox1) = 1 Then
_memorywrite($InfSp,$open,"2348303835","long")
Else
_memorywrite($InfSp,$open,"2348303833","long")
EndIf
Case $Checkbox2
If GUICtrlRead($Checkbox2) = 1 Then
_memorywrite($InfAmmo,$open,"2280231056","long")
Else
_memorywrite($InfAmmo,$open,"2280195446","long")
EndIf
case $Checkbox3
If GUICtrlRead($Checkbox3) = 1 Then
_memorywrite($200Hp,$open,"2348565979","long")
Else
_memorywrite($200Hp,$open,"2348565977","long")
EndIf
case $Checkbox4
If GUICtrlRead($Checkbox4) = 1 Then
_memorywrite($InstantRespawn,$open,"989874827","long")
Else
_memorywrite($InstantRespawn,$open,"990136971","long")
EndIf
case $Checkbox5
If GUICtrlRead($Checkbox5) = 1 Then
_memorywrite($OneHitKill,$open,"1593591259","long")
Else
_memorywrite($OneHitKill,$open,"1593591257","long")
EndIf
case $Checkbox6
If GUICtrlRead($Checkbox6) = 1 Then
_memorywrite($IncreaseFire,$open,"990333579","long")
Else
_memorywrite($IncreaseFire,$open,"990136971","long")
EndIf
case $Checkbox7
If GUICtrlRead($Checkbox7) = 1 Then
_memorywrite($HitRange,$open,"2344895963","long")
Else
_memorywrite($HitRange,$open,"2344895961","long")
EndIf
case $Checkbox8
If GUICtrlRead($Checkbox8) = 1 Then
_memorywrite($000/000Hp,$open,"2348565976","long")
Else
_memorywrite($000/000Hp,$open,"2348565977","long")
EndIf
case $Checkbox9
If GUICtrlRead($Checkbox9) = 1 Then
_memorywrite($Invisible,$open,"1435209872","long")
Else
_memorywrite($Invisible,$open,"1435177076","long")
EndIf
case $Checkbox10
If GUICtrlRead($Checkbox10) = 1 Then
_memorywrite($SpeedHackRun,$open,"2366073344","long")
Else
_memorywrite($SpeedHackRun,$open,"2365811200","long")
EndIf
case $Checkbox11
If GUICtrlRead($Checkbox11) = 1 Then
_memorywrite($SpeedHackWalk,$open,"2240612202","long")
Else
_memorywrite($SpeedHackWalk,$open,"2240611178","long")
EndIf
case $Checkbox12
If GUICtrlRead($Checkbox12) = 1 Then
_memorywrite($ChannelNoLvl,$open,"1300992144","long")
Else
_memorywrite($ChannelNolvl,$open,"1300962932","long")
EndIf
case $Checkbox13
If GUICtrlRead($Checkbox13) = 1 Then
_memorywrite($Suicide,$open,"2348565983","long")
Else
_memorywrite($Suicide,$open,"2348565977","long")
EndIf
case $Checkbox14
If GUICtrlRead($Checkbox14) = 1 Then
_memorywrite($NoLaser,$open,"1301115242","long")
Else
_memorywrite($NoLaser,$open,"1301094762","long")
EndIf
EndSwitch
WEnd
Func _MemoryScan($ah_Handle, $pattern, $after = False, $iv_addrStart = 0x00000000, $iv_addrEnd = 0X0FFFFFFF, $step = 51200)
If Not IsArray($ah_Handle) Then
SetError(1)
Return -1
EndIf
$pattern = StringRegExpReplace($pattern, "[^0123456789ABCDEFabcdef.]", "")
If StringLen($pattern) = 0 Then
SetError(2)
Return -2
EndIf
For $addr = $iv_addrStart To $iv_addrEnd Step $step - (StringLen($pattern) / 2)
StringRegExp(_MemoryRead($addr, $ah_Handle, "byte[" & $step & "]"), $pattern, 1, 2)
If Not @error Then
If $after Then
Return StringFormat("0x%.8X", $addr + ((@extended - 2) / 2))
Else
Return StringFormat("0x%.8X", $addr + ((@extended - StringLen($pattern) - 2) / 2))
EndIf
EndIf
Next
Return -3
EndFunc