Results 1 to 4 of 4
  1. #1
    melee's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    My Mood
    Amused

    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;
    }

  2. #2
    Son's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    So-Cal
    Posts
    6,654
    Reputation
    412
    Thanks
    607
    My Mood
    Dead

  3. #3
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,010
    My Mood
    Amused
    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

  4. #4
    Jigsaw's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Moon
    Posts
    23,219
    Reputation
    852
    Thanks
    2,089
    DEHUMANIZE YOURSELF
    AND FACE TO BLOODSHED

Similar Threads

  1. [Help Request] need help with injecting code/using it
    By 0xx-kyle-xx0 in forum Combat Arms Help
    Replies: 1
    Last Post: 06-17-2018, 12:02 PM
  2. [Solved] Help with picture...fast please !!!
    By PasterOfMuppets in forum CrossFire Help
    Replies: 2
    Last Post: 10-29-2011, 11:35 PM
  3. [Help Request] I need help with my mod please:)
    By LawlFaceXD in forum Combat Arms Mod Help
    Replies: 0
    Last Post: 08-09-2011, 08:36 PM
  4. [SOLVED]Help with a code
    By lolbie in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 06-14-2010, 01:04 PM
  5. NEED help with verification code when registering!
    By vinogradov in forum WarRock Korea Hacks
    Replies: 2
    Last Post: 05-30-2007, 07:20 PM