Help with my code please.[SOLVED]

Posts 14 of 4 · Page 1 of 1
Help with my code please.[SOLVED]
Well idk what is wrong with my code. can someone plz help me out? just crashes in game.

Code:
#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 + 0x299D40) );
		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
		_asm
		{
			push szVal;
			call CONoff;
			add esp, 4;
		}
	}
}

BOOL WINAPI Main (LPVOID)
{
	bool nosky = false;
	bool worldframe = false;
	bool playerframe = false;
	bool nogun = false;
	bool Skeleton = false;
	bool FogEnable = false;
	bool CursorCenter = false;

	while(1)
	{
		__asm pushad;
		if(GetAsyncKeyState(0x12) &0x8000 && GetAsyncKeyState('X') &0x8000)
		{
			nosky = !nosky;
		}
		if(GetAsyncKeyState(0x12) &0x8000 && GetAsyncKeyState('C') &0x8000)
		{
			worldframe = !worldframe;
		}
		if(GetAsyncKeyState(0x12) &0x8000 && GetAsyncKeyState('V') &0x8000)
		{
			playerframe = !playerframe;
		}
		if(GetAsyncKeyState(0x12) &0x8000 && GetAsyncKeyState('B') &0x8000)
		{
			nogun = !nogun;
		}
		if(GetAsyncKeyState(0x12) &0x8000 && GetAsyncKeyState('N') &0x8000)
		{
			Skeleton = !Skeleton;
		}
		if(GetAsyncKeyState(0x12) &0x8000 && GetAsyncKeyState('M') &0x8000)
		{
			FogEnable = !FogEnable;
		}
		if(GetAsyncKeyState(0x12) &0x8000 && GetAsyncKeyState('Z') &0x8000)
		{
			CursorCenter = !CursorCenter;
		}

		if (CursorCenter)
			PushToConsole("CursorCenter 1");
		else 
			PushToConsole("CursorCenter 0");

		if (FogEnable)
			PushToConsole("FogEnable 1");
		else
			PushToConsole("FogEnable 0");

		if (Skeleton) {
			PushToConsole("ModelDebug_DrawSkeleton 1"); 
		}
		else {
			PushToConsole("ModelDebug_DrawSkeleton 0"); 
		}
		if  (nosky)
			PushToConsole("DrawSky 0");
		else
			PushToConsole("DrawSky 1");

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

		if  (playerframe)
			PushToConsole("WireFrameModels 1");
		else
			PushToConsole("WireFrameModels 0");

		if  (nogun)
			PushToConsole("DrawGuns 0");
		else
			PushToConsole("DrawGuns 1");
		__asm popad;

		Sleep(100);
	}
}

bool Ready(void)
{
    if( GetModuleHandleA("CShell.dll")!= NULL)
        return true;
    return false;
}

DWORD WINAPI dwMainThread(LPVOID)
{
	while (!Ready())
		Sleep(200);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
	return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA(0, "Coded By Melee", "HACKS", 0);
		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
	}
	return TRUE;
}
lol, this base doesnt work any more...
Im not sure but is this the actually LT Client Addresse?
And you leeched this code ^^
There is a anti leech protection in it xD
Wrong hotkeys...
It must be like

if (GetAsyncKeyState(VK_NUMPAD1)<0)
{
}

thank me if I heped you
Posts 14 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?