#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Trainer's Andy", 242, 161, -1, -1)
$Checkbox1 = GUICtrlCreateCheckbox("Godmod", 16, 8, 65, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Infini Ammo", 16, 128, 81, 17)
$Checkbox3 = GUICtrlCreateCheckbox("200 hp", 16, 104, 65, 17)
$Checkbox4 = GUICtrlCreateCheckbox("1 HitKill", 16, 80, 57, 17)
$Checkbox5 = GUICtrlCreateCheckbox("Fast Fire", 16, 56, 65, 17)
$Checkbox6 = GUICtrlCreateCheckbox("CutSpeed", 16, 32, 97, 17)
$Button1 = GUICtrlCreateButton("Start ?!", 112, 64, 113, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $Button1
cheat()
EndSwitch
WEnd
Func cheat()
ToolTip("En Attente d'S4League", 0, 0)
$PID = ProcessWait("S4Client.exe")
Sleep(400)
_processsuspend("HGWC.exe")
_processsuspend("S4Client.exe")
$OPEN = _MEMORYOPEN($PID)
Sleep(1000)
If GUICtrlRead ($Checkbox1) = 1 Then
_MEMORYWRITE(0x00504AF8 , $OPEN, "4226388112", "long")
EndIf
If GUICtrlRead ($Checkbox2) = 1 Then
_MEMORYWRITE(0x007614B2 , $OPEN, "2348565979 ", "long")
EndIf
If GUICtrlRead ($Checkbox3) = 1 Then
_MEMORYWRITE(0x007614B2 , $OPEN, "3051982992 ", "long")
EndIf
If GUICtrlRead ($Checkbox4) = 1 Then
_MEMORYWRITE(0x00505469 , $OPEN, "1593591259 ", "long")
EndIf
If GUICtrlRead ($Checkbox5) = 1 Then
_MEMORYWRITE(0x0054A939 , $OPEN, "990399115 ", "long")
EndIf
If GUICtrlRead ($Checkbox6) = 1 Then
_MEMORYWRITE(0x005FE35E , $OPEN, "2240612458 ", "long")
EndIf
_memoryclose($OPEN)
_processresume("HGWC.exe")
_processresume("S4Client.exe")
Exit
EndFunc
Func _PROCESSSUSPEND($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
Func _PROCESSRESUME($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc