My hack doesnt work :\

Posts 1–11 of 11 · Page 1 of 1
My hack doesnt work :\
Okay , so i enter the game my hack comes up as injected and nothing happens it just doesnt work.

The Code is down below and if i need to add hot keys please instruct me on how to do so

#include "stdafx.h"

#define WeaponMgr 0xA68F90
#define NoReload 0x269C
#define OneHit 0x7F8
#define NoChange 0x26A0
#define NoWeight 0x2454
#define NoSpread 0x26A4

DWORD WINAPI Hacks(LPVOID)
{
bool noreload = true;
bool onehit = true;
bool nochange = true;
bool noweight = true;
bool nospread = true;



while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);

if(onehit)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + OneHit ) = 9999;
}


}
}
if(noreload)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
}
}



}
if(nochange)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoChange) = 100;
}


}
}
if(noweight)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoWeight) = 0.0f;
}


}
}
if(nospread)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoSpread) = 0.0f;
}


}
}
Sleep(100);
}

}

bool Ready2Hook()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}

DWORD WINAPI Wait(LPVOID)
{
while(!Ready2Hook()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);

if ( dwReason == DLL_PROCESS_ATTACH )
{

MessageBoxA(0, "Credits- Maxpower439","Beta Hack", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}
you said it was working but with no weapon showd
It wasnt i just thought it was cuz it had no weapon = no reload etc , but i was wrong @giniyat101
9999 is no float.
100 is no float.
Quote Originally Posted by Brimir View Post
9999 is no float.
100 is no float.
stop saying that. he can easily fix it to 100.0f but he says he cant inject it...
just rename the dll u got into sxs.dll and put it in cf folder it should work
Quote Originally Posted by moathebest View Post
just rename the dll u got into sxs.dll and put it in cf folder it should work
Correct , Just Rename .
ok, who cares that your hack isnt working?
Quote Originally Posted by CheatCreatorzz View Post
ok, who cares that your hack isnt working?
He is searching for a solution.....<<
Fixed xD
[HTML]#include "stdafx.h"
#include <windows.h>

#define WeaponMgr 0xA68F90
#define NoReload 0x269C
#define OneHit 0x7F8
#define NoChange 0x26A0
#define NoWeight 0x2454
#define NoSpread 0x26A4

DWORD WINAPI Hacks(LPVOID)
{
bool noreload = true;
bool onehit = true;
bool nochange = true;
bool noweight = true;
bool nospread = true;



while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
for(int i = 0; i <= 559; i++){
DWORD CShell = *(DWORD*)( pWeaponMgr + (4*i));


if(onehit) {
*(float*)(CShell + OneHit) = 116.0f; //Not Get Client Error

}

if(noreload) {
*(float*)(CShell + NoReload) = 100;
}

}
if(nochange) {
*(float*)(CShell + NoChange) = 0;
}

if(noweight) {
*(float*)(CShell + NoWeight) = 0;
}

}
if(nospread) {
*(float*)(CSell + NoSpread) = 0;
}



}
}
Sleep(100);
}

}

bool Z8()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}

DWORD WINAPI Wait(LPVOID)
{
while(!Z8()) Sleep(200);//Name Hook Changed To Not Get String Detected
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);

if ( dwReason == DLL_PROCESS_ATTACH )
{

MessageBoxA(0, "Credits- Maxpower439","Beta Hack", 0);//BETA ? Give Credits


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}[/HTML]
ye.. you was forgotten #incude <windows.h>

hm.. and no spread is 7 offsets?
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?