UnhappyNoreload

Posts 1–15 of 27 · Page 1 of 2
Noreload
when i inject the dll into the game it didnt reload my m16. can anyone tell me what wrong with this code im a beginning at this just start now i didnt know anything about ollydbg addy and c++


#include "stdafx.h"
#define WeaponMgr 0xA68F90
#define NoReload 0x269C

DWORD WINAPI Hacks(LPVOID)
{
bool hak = true;
bool recoil = true;

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

if(hak)
{
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 ) = 150;
}

}
}
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, "your test Here for the message","your title message", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}
Quote Originally Posted by jenoyan2 View Post
when i inject the dll into the game it didnt reload my m16. can anyone tell me what wrong with this code im a beginning at this just start now i didnt know anything about ollydbg addy and c++


#include "stdafx.h"
#define WeaponMgr 0xA68F90
#define NoReload 0x269C

DWORD WINAPI Hacks(LPVOID)
{
bool hak = true;
bool recoil = true;

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

if(hak)
{
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 ) = 150;
}

}
}
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, "your test Here for the message","your title message", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}
maybe change the value to 100.0f
uhh where the value sorry i just started to make hack today not a pro yet
dwWeaponMgr = *(DWORD*)GetAddressFromOffset(CShell, WeaponMgrOffset);

for(int i = 0; i < 560; i++)
{
DWORD Weapon = *(DWORD*)GetAddressFromOffset(dwWeaponMgr, (4*i));
if(Weapon)
{
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->ReloadAnimRatio) = 16;

}
}
@jenoyan2 right here : *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload ) = 150(change this 150 , to 100.0f);
For example, in the Russian version of 100 will give an error!
For better use of this as I wrote above - 16
add this

bool reload = true,
Quote Originally Posted by Hexicidal View Post
add this

bool reload = true,
about the weaponhack.... am gonna try to help u ...write in the search up there right at MPGH..write weapon hack source code.. u will find many examples....and this can help u much as it helped me...u have to know C++ for this things

http://www.mpgh.net/forum/242-crossf...gun-index.html
Quote Originally Posted by Hexicidal View Post
add this

bool reload = true,
LOL!!! He already added bool hak
Quote Originally Posted by Ryuesi View Post

LOL!!! He already added bool hak
I know but he added hak instead of no reload and maybe won't work
Quote Originally Posted by Hexicidal View Post


I know but he added hak instead of no reload and maybe won't work
LOL!! u know c++ ??
Quote Originally Posted by Ryuesi View Post

LOL!! u know c++ ??


Obviously but you don't believe me
Quote Originally Posted by Hexicidal View Post




Obviously but you don't believe me
Yep !! if really
i will ask you easy questions
what's mean
4*i
Quote Originally Posted by Ryuesi View Post

Yep !! if really
i will ask you easy questions
what's mean i*4
You mean 4*i you want to know the uses or the mean
well i dont think this is ur code...cuz the message box is wierd..it's only showed in tuts..but am gonna help u..1st if ur gonna make no reload
u have to put the base of the unlimited ammo..u can get the addys from OoSimpsonsOo's post...and then make a base of it and combine noreload and unlimited ammo together.. but here are somethings u have to add to no reload u will find instructions in green

Code:
#include "stdafx.h" 
#define WeaponMgr 0xA68F90
#define NoReload 0x269C
#define Unlimited Ammo 0xaddy ( get the addy)

DWORD WINAPI Hacks(LPVOID) 
{
bool hak = true; // i suggest u change bool hak To bool noreload 
bool recoil = true; // WTH!!! there is No recoil in the defines what is this??
bool unlimitedammo = true;

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

if(hak)
{
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 (hak  or u can put if UnlimitedAmmo)
{
if (pWeaponMgr)
{
for(int i=0 ; i<560; i++)
{
Then put ur base here 
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, "your test Here for the message","your title message", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}
Posts 1–15 of 27 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us