longknife instruction couldnt be read
i always get "instruction could be read at 0xa34 when i inject the dll to CF SndDrv.dll)...and am using @BlackLite 's base....(u cant call me a leecher cuz i didnt release a hack
)
here is the shit code
)here is the shit code
Code:
#include "windows.h"
#define WeaponMgr 0xA69120
#define Knives ((i==5)||(i==176)||(i==177)||(i==178)||(i==182)||(i==195)||(i==196)||(i==197)||(i==198)||(i==199)||(i==223)||(i==224)||(i==225)||(i==226)||(i==227)||(i==228)||(i==270)||(i==271)||(i==302)||(i==303)||(i==304)||(i==305)||(i==306)||(i==307)||(i==404)||(i==405)||(i==406)||(i==407)||(i==408)||(i==409))
DWORD WINAPI Hacks(LPVOID)
{
bool longknife = true;
while (1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(longknife)
{
if(pWeaponMgr)
{
for(int i=0; i<601; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL && (Knives))
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0x7EC) = 25000.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xA10) = 25000.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0x2720) = 25000.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xA34) = 25000.0f;
}
}
}
}
//rest of shit code here

