Hi all, i'm italian and sorry for my bad english
I tried to create a thread in the appropriate section but it does not make me ..could you please move it?
I want created hack for Combat arms EU..(Simple, only nx chams) i used Visual C++ 2008..
i have any questions... :
1) i used perX for Inject my dll (it work? :S)
2) Dll inject in the game, but not work. (as if there was anything... not crash and not cheat xD)
3) maybe I'm wrong something in the code :
Code:
#include <windows.h>
#include <stdio.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void CPush(const char* cmd)
{
_asm
{
PUSH cmd
MOV EAX, 0x0485E40
CALL EAX
ADD ESP, 0x4
}
}
void main() {
CPush("SkelModelStencil 1");
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
Help me please?