ExclamationHelpWeapon Ammo Hack

Posts 1–4 of 4 · Page 1 of 1
Weapon Ammo Hack
guys i need some help. my code is not working ingame. i think my addys is updated.

Code:
#include <windows.h>
#include <stdio.h>

#define ADR_Playerpointer 0x00A903E
#define ADR_Serverpointer 0x00A8F39
#define ADR_WeaponGlobal1 0x00AAE498
#define ADR_WeaponGlobal2 0x00B024E0

DWORD *ingame = (DWORD*)ADR_Playerpointer;
DWORD *outgame = (DWORD*)ADR_Serverpointer;

class CWeaponInformations
{
public:
     char padd1[132];
     DWORD dwDamage; // 0x84  
     DWORD dwDefence; //0x88
     DWORD dwRange; // 0x8C   
     DWORD dwAmmoNum; //0x90   
     DWORD dwMagazineNum; //0x94 
     DWORD dwEffectRange; //0x98  
     DWORD dwParabola; // 0x9C
	 char padd2[12];
     DWORD dwShotSpeed; //0xAC 
     DWORD dwWeight; //0xB0
};


CWeaponInformations* getWeaponInfo(int index, DWORD ptr)
{
    DWORD dwPtrToWeapons = *(DWORD *)(ptr + 0x40);
    if(!dwPtrToWeapons)   
        return 0;       

    DWORD dwPtrToDesiredWeapon = *(DWORD *)(dwPtrToWeapons + index);
    
    if(!dwPtrToDesiredWeapon)
        return 0;    
    
    return (CWeaponInformations*)(dwPtrToDesiredWeapon);
}


// Initialize Class
CWeaponInformations* weaponInformations = getWeaponInfo(66, ADR_WeaponGlobal1);
CWeaponInformations* weaponInformations2 = getWeaponInfo(66, ADR_WeaponGlobal2);

// How To Use

void AMMO()
{
	weaponInformations->dwAmmoNum = 9;
        weaponInformations->dwRange = 9000000;
        weaponInformations->dwEffectRange = 90000;
}


void HackThread()
{
for(;; )
{
if(*ingame)
{
AMMO();
}
if(*outgame)
{
}
Sleep(200);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Testing Lang xD", "Made by: ME", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
}
return TRUE;
}
heres the full code


theres no error with my code but ingame my hack is not working, anyone can correct my code.

thanks in advance to all coders!
more power.!
Quote Originally Posted by azl3rz08 View Post
guys i need some help. my code is not working ingame. i think my addys is updated.

Code:
#include <windows.h>
#include <stdio.h>

#define ADR_Playerpointer 0x00A903E
#define ADR_Serverpointer 0x00A8F39
#define ADR_WeaponGlobal1 0x00AAE498
#define ADR_WeaponGlobal2 0x00B024E0

DWORD *ingame = (DWORD*)ADR_Playerpointer;
DWORD *outgame = (DWORD*)ADR_Serverpointer;

class CWeaponInformations
{
public:
     char padd1[132];
     DWORD dwDamage; // 0x84  
     DWORD dwDefence; //0x88
     DWORD dwRange; // 0x8C   
     DWORD dwAmmoNum; //0x90   
     DWORD dwMagazineNum; //0x94 
     DWORD dwEffectRange; //0x98  
     DWORD dwParabola; // 0x9C
	 char padd2[12];
     DWORD dwShotSpeed; //0xAC 
     DWORD dwWeight; //0xB0
};


CWeaponInformations* getWeaponInfo(int index, DWORD ptr)
{
    DWORD dwPtrToWeapons = *(DWORD *)(ptr + 0x40);
    if(!dwPtrToWeapons)   
        return 0;       

    DWORD dwPtrToDesiredWeapon = *(DWORD *)(dwPtrToWeapons + index);
    
    if(!dwPtrToDesiredWeapon)
        return 0;    
    
    return (CWeaponInformations*)(dwPtrToDesiredWeapon);
}


// Initialize Class
CWeaponInformations* weaponInformations = getWeaponInfo(66, ADR_WeaponGlobal1);
CWeaponInformations* weaponInformations2 = getWeaponInfo(66, ADR_WeaponGlobal2);

// How To Use

void AMMO()
{
	weaponInformations->dwAmmoNum = 9;
        weaponInformations->dwRange = 9000000;
        weaponInformations->dwEffectRange = 90000;
}


void HackThread()
{
for(;; )
{
if(*ingame)
{
AMMO();
}
if(*outgame)
{
}
Sleep(200);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Testing Lang xD", "Made by: ME", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
}
return TRUE;
}
heres the full code


theres no error with my code but ingame my hack is not working, anyone can correct my code.

thanks in advance to all coders!
more power.!
Surely it will not gonna work because you just copy and pasted everything from here: http://www.mpgh.net/forum/showthread.php?t=823417
Quote Originally Posted by -=meow=- View Post
Surely it will not gonna work because you just copy and pasted everything from here: http://www.mpgh.net/forum/showthread.php?t=823417
yup and im sorry for that
coz i want to create my personal hack. can you help me to correct this code.
or just pm me.

thanks
Quote Originally Posted by azl3rz08 View Post
yup and im sorry for that
coz i want to create my personal hack. can you help me to correct this code.
or just pm me.

thanks
I'm sorry, even if i want to help you but i can't cos i'm still fixing it.
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?