Z8Games Crossfire[Need coder help]

Posts 1–10 of 10 · Page 1 of 1
Z8Games Crossfire[Need coder help]
Hello guys does anyone know why this does not work for Z8Games Crossfire?
I'm pretty sure I got the right LTClient pointer but would anyone double check for me?

When I press numpad 1 i hear beep but no wireframes.

Code:
#include <windows.h>

bool worldframe = false;

void __cdecl PushToConsole(char *szVal)
{
	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
	if(dwCShell != NULL)
	{
		DWORD *LTClient = (DWORD*)((dwCShell + 0x2E39C8));
		void *CONoff = (void*)*(DWORD*)(*LTClient + 0x1F8);
		__asm
		{
			push szVal
			call CONoff
			add esp, 4
		}
	}
}

DWORD WINAPI Main(LPVOID lpParam)
{
	for(;;Sleep(100))
	{
		__asm pushad

		if(GetAsyncKeyState(VK_NUMPAD1)&1)
		{
			worldframe = !worldframe;
			Beep(500, 500);
		}

		if(worldframe)
			PushToConsole("WireFrame 1");
		else
			PushToConsole("WireFrame 0");

		__asm popad
	}

	return EXIT_SUCCESS;
}

DWORD WINAPI MainThread(LPVOID lpParam)
{
	while(GetModuleHandleA("CShell.dll") == NULL)
		Sleep(200);

	CreateThread(0, 0, Main, 0, 0, 0);

	return EXIT_SUCCESS;
}

BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
{
	DisableThreadLibraryCalls(hInst);
	if(dwReason == DLL_PROCESS_ATTACH)
	{
		MessageBoxA(0, "Injected", "Injected", MB_OK);
		CreateThread(0, 0, MainThread, 0, 0, 0);
	}
	return TRUE;
}
Note: If anyone got LT pointer from me and got it working please tell me.
I'm not sure if that's the right LTC! And also some ptc commands dont work! Try another one!
wireframe patched...
i was gunna say that just now! Try using the whitewalls code or look in the cshell!
Oh thank you guys for telling me it was patched.
The LTClient pointer is correct .
Mind telling me what the whitewalls command is? If not patched...

Edit:
PushToConsole("DrawFlat 1");
Is that the white walls?
I did numpad 1 and heard beep but the walls werent white you sure thats not patched too?
No that's patched then! Do you have a bypass?
OMG!
Dude, one base for u.

#include <windows.h>
#include <iostream>

using namespace std;

void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x2E39C8) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}

DWORD WINAPI hello(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(120);
}


for(;; ) {
__asm pushad;


Sleep(120);
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "UR NAME", "Injected", 0);
CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
}
return TRUE;
}
http://www.mpgh.net/forum/242-crossf...-visual-c.html
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us