For and While Loops
First we start code a Noreload code.
- First we must include something for let the hack working...
#include<windows.h> // (Windows.header) hack will work in windows.
// also #include "stdafx.h"
- Then we must Define some addies. and maybe Weapon ID's 'i'
#define LTC client 0xA05E48 //new addies after patch, search it with ollyDgb #define NoReload 0x2420//Noreload addie. Search for ''ReloadAnimRate'' in Olly.
Now Start make the hack codes etc..
WINAPI declares the "calling convention" basically how the compiler pushes arguments on the stack and how it generates the function call
=> DWORD WINAPI Hacks(LPVOID)
To declare such a value, you use the bool keyword.
(true or false)
Then.
Code:
{
bool noreload = true; //auto on
Then we make Infinite loop
Code:
while(1)
{
// code
}
Now we Create the Code '//code':
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll"); //it get cshell.dll handle.
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr); // says pWeaponMgr is defined WeaponMgr(addie).