Hello everybody!
I make a hacks for other CF localization, not NA.
Everything is good, but method that I use for injecting dll is patched today

... (i just renamed hack to mlang.dll and place it in CF folder, and it work yesterday).
I know that i must use an undetected injector.
Yes, it works great but not with my hack.
There is the simple code for noreload (IT WORKS 100% when i rename file to mlang.dll!). Please look!
Code:
#include <windows.h>
#define WeaponMgr 0xA68F80
#define NoReload 0x269C
//---
DWORD WINAPI Hackz(LPVOID)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
if ( pWeaponMgr )
{
for ( int i = 0; i < 560; i++ )
{
if ( (*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL )
{
//No reload
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100.0f;
}
}
}
return 0;
}
//---
bool R2H()
{
if ( GetModuleHandleA("CShell.dll") != NULL && GetModuleHandleA("ClientFx.fxd") != NULL )
return 1;
return 0;
}
//---
DWORD WINAPI Wait(LPVOID)
{
while ( !R2H()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hackz, NULL, NULL, NULL);
return 0;
}
//---
int WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBox(0,"Hack injected",0,0);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Wait, 0, 0, 0);
}
}
There is not so much hack for my CF localization, and they works with auto inject, but mine

...
What the f? What i must put in source? Why other hack works great with auto inject? Shit.
Help me, pleeeeeeeeeeeeeeeease!
