Results 1 to 5 of 5
  1. #1
    joered's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Netherlands
    Posts
    345
    Reputation
    17
    Thanks
    332

    Help me with my source please.

    Can some one help me with my source im relative new to mpgh and new to coding. So if some oen can help me. Please dont answer by telling me to figure it our by my self. Sorry for my bad english /

    I get some erros by building but if im right this is patched?

    Code:
    #include <windows.h>
    bool IsGameReadyForHook()
    {
    	if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
    		&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
    		&& GetModuleHandleA( "CShell.dll"   ) != NULL )
    		return true;
    	return false;
    }
    void ConsolePush(const char* Command) {
    DWORD CNADDIE = 0x46F670;
    void* Send = ( void* )*( DWORD* )(CNADDIE);
    __asm
    {
    push Command;
    call Send; 
    add esp, -3-1+2+6;
    }
    }  
    void main()
    {
    	
    	bool chams = false;
    	bool fog = false; 
    	bool fps = false;
    	bool spread = false;
    	bool KnockBack = false;
    	bool Bright = false; 
    	bool hands = false;
    	bool wire = false;
    	bool fire = false;
    	while(true)
    	{		
    		if(GetAsyncKeyState(VK_NUMPAD1<0){ 
    			if(chams == true){ 
    				PushToConsole("SkelModelStencil 0");
    				chams = false; 
    			} else { 
    				PushToConsole("SkelModelStencil 1"); 
    				chams = true; 
    			}
    		if(GetAsyncKeyState(VK_NUMPAD2)<0){ 
    			if(fog == true){ 
    				PushToConsole("FogEnable 1" ); 
    				fog = false; 
    			} else { 
    				PushToConsole("FogEnable 0" ); 
    				fog = true; 
    			}
    		if(GetAsyncKeyState(VK_NUMPAD3)<0){ 
    			if(fps == true){ 
    				PushToConsole("ShowFps 0"); 
    				fps = false; 
    			} else { 
    				PushToConsole("ShowFps 1"); 
    				fps = true; 
    			}
    		if(GetAsyncKeyState(VK_NUMPAD4)<0){ 
    			if(spread == true){ 
    				PushToConsole("PerturbRotationEffect  0.000000" );
    				PushToConsole("PerturbIncreaseSpeed 0.000000" );
    				PushToConsole("PerturbWalkPercent 0.000000" );
    				PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
    				PushToConsole("PerturbRecoil 0.000000" );
    				PushToConsole("FireMovePerturb 0.000000" );
    				PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
    				PushToConsole("ZoomedFireMovePerturb 0.000000" );
    				PushToConsole("ZoomedFireDuckPerturb 0.000000" );
    				spread = true; 
    			}
    		if(GetAsyncKeyState(VK_NUMPAD5)<0){ 
    			if(KnockBack == true){ 
    				PushToConsole("KnockBack 0" );
    				KnockBack = false; 
    			} else { 
    				PushToConsole("KnockBack 1" ); 
    				KnockBack = true; 
    			}
    		if(GetAsyncKeyState(VK_NUMPAD6)<0){ 
    			if(Bright == true){ 
    				PushToConsole("FullBright 0" );
    				Bright = false; 
    			} else { 
    				PushToConsole("FullBright 1" );
    				Bright = true; 
    			}
    		if(GetAsyncKeyState(VK_NUMPAD7)<0){ 
    			if(hands == true){ 
    				PushToConsole("Hands 1" );
    				hands = false; 
    			} else { 
    				PushToConsole("Hands 0" );
    				hands = true; 
    		    } 
    				if(GetAsyncKeyState(VK_NUMPAD8)<0){ 
    			if(wire == true){ 
    				PushToConsole( "WireFrame 0" );
    				wire = false; 
    			} else { 
    				PushToConsole( "WireFrame 1" );
    				wire = true; 
    			} 
    				if(GetAsyncKeyState(VK_NUMPAD9)<0){ 
    			if(fire == true){ 
    				PushToConsole( "ShowFirePath 0" );
    				fire = false; 
    			} else { 
    				PushToConsole( "ShowFirePath 1" ); 
    				fire = true; 
    	}
    	Sleep(200);
    }
    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 )
    	{
    		system("start https://mpgh.net/");
    		CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); 
    	}
    	return TRUE;
    }

  2. #2
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,356
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    yea its patched...And just c+p ?

    Thanks Cosmos


  3. #3
    neononxxx's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    why do you wanna know?? so you can kill me?
    Posts
    1,226
    Reputation
    36
    Thanks
    342
    My Mood
    Drunk
    The Console method is detected by HS I believe.
    If you was to fix it and the errors.

    By all means it would work.
    [IMG]https://www.find-heavyequipmen*****m/images/small-loading.gif [/IMG]Loading content... Please wait while the rest of this post loads.

  4. #4
    doofbla's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Biel*****/Germany
    Posts
    369
    Reputation
    10
    Thanks
    179
    My Mood
    Psychedelic
    yes your consolepush is patched you can make it working if you've a little bit of c++ and assembler knowledge ;-)
    _____________________________________________

    READING TUTORIAL:

    1. READ MY POST
    2. THINK ABOUT MY POST
    3. PRESS THANKS
    4. MAYBE CORRECT MY POSTS :P




    Dijkstra:
    "Computer Science is no more about computers than astronomy is about
    telescopes."


    THANKS BUTTON RIGHT DOWN --->

  5. #5
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    797
    My Mood
    Busy
    even that Patched ..... doesn't mean there is Error's

    H A X O
    Email : Noobmem@hotmail.com


Similar Threads

  1. Help me with this lag please:(
    By Composer in forum CrossFire Help
    Replies: 23
    Last Post: 08-18-2010, 12:20 PM
  2. [Help] me with mah IP please
    By axg24 in forum CrossFire Help
    Replies: 6
    Last Post: 07-02-2010, 11:11 PM
  3. [Help] Help Me with some hacks please
    By superman3706 in forum CrossFire Hacks & Cheats
    Replies: 7
    Last Post: 09-29-2009, 03:35 PM
  4. Help me with new pub please!
    By Ragehax in forum CrossFire Hacks & Cheats
    Replies: 2
    Last Post: 07-12-2009, 07:16 PM
  5. HELP me with warrock hacks please.
    By aznfan123 in forum WarRock - International Hacks
    Replies: 11
    Last Post: 01-29-2008, 12:27 PM