Combat Arms PushToConsole Base

Posts 1–6 of 6 · Page 1 of 1
Combat Arms PushToConsole Base
When i inject automatic with FaithInjector , CA-EU close
i'm New Combat arms coder , i'm Cross Fire coder
Code:
#include <Windows.h>

#define LTClient 0x377F1D68 //MOV ECX,DWORD PTR DS:[377F1D68]
bool WhiteWalls = false;

void __cdecl PushToConsole(  char* szCommand)
{
	typedef int (__cdecl* PTC_t)(char* cmd); 
    PTC_t RCC = (PTC_t)	LTClient;
    RCC(szCommand); 
}


void HackThread (void)
{
	for(;;) 
	{
	__asm pushad;
// just an example .. only
		bool Wireframe = 1;
			if (Wireframe==1)
{		           
PushToConsole("WireFrame 1");
	}

	__asm popad;
   }
}


BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
      Beep(1000,500);
	  CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)HackThread,NULL,NULL,NULL);
	}
	return TRUE;
}


---------- Post added at 12:10 PM ---------- Previous post was at 12:09 PM ----------

Edit : i saw 0x208 on OllyDebug , have i use it ?
LtClient + 0x208...
Quote Originally Posted by iDarkness View Post
LtClient + 0x208...

Code:
#include <Windows.h>

#define LTClient 0x377F1D68 //MOV ECX,DWORD PTR DS:[377F1D68]
bool WhiteWalls = false;

void __cdecl PushToConsole(char* szVal ) {
	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
	if( dwCShell != NULL )
	{

		DWORD *LTClient2 = ( DWORD* )( (dwCShell + LTClient) );
		void* CONoff = ( void* )*( DWORD* )( *LTClient2 + 0x208 );
		_asm
		{
			push szVal;
			call CONoff;
			add esp, 4;
		}
	}
}


void HackThread (void)
{
	for(;;) 
	{
	__asm pushad;
	if(GetAsyncKeyState(VK_F9)&1) {
			WhiteWalls = !WhiteWalls;
		}
if  (WhiteWalls) {
			PushToConsole("DrawFlat 0");
		}
		else {
			PushToConsole("DrawFlat 1");
		}

	__asm popad;
   }
}



BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
      Beep(1000,500);
	  CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)HackThread,NULL,NULL,NULL);
	}
	return TRUE;
}
You're missing so many functions it would be better to just trash your code and restart.
Quote Originally Posted by Shadow` View Post
You're missing so many functions it would be better to just trash your code and restart.
i still don't know to much about Combat Arms , but i can code Cross Fire and work's with Same Source below,
if someone will help me i'll hopefully good with him
Updated Addies gone wrong ?!!!!
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us