Results 1 to 6 of 6
  1. #1
    calvinchau309's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0

    Can anyone help me fix this?

    I got his code from a base and when i compile the hacks it says its not sucessful or it comes up as a manefest file can you help me?
    Code:
    ////////////////////////////////////////////////////
    //					Credits
    //
    //					Gellin08 aka Gellin( Tha Base )
    //					tim0n and s0beit (Getpointer and wait functions)
    //					Ghoster	( pro )
    //					Sinner	( Cdetour mods )
    //					z0mbie  ( ADE32 )
    //					LanceVorigin ( original cdetour class )
    //					Micro ( original menu )
    #include 'stdafx.h'
    #include "Base.h"
    #include "Menu.h"
    
    \]\zsaw
    \6454
    ]\8cBase Base;
    
    void __cdecl cBase::PushToConsole( const char* szCommand )
    {
    	DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );
    	void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
     
    	__asm
    	{
    		push szCommand;
    		call CONoff;
    		add esp, 4;
    	}
    }	
    
    //Every Frame
    void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
    {
    	if( !Base.bSet.bInit )
    	{
    		D3DXCreateFont(pDevice, 15, 0, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont);
    		Base.bSet.bInit = true;
    	}
    
    	if( Directx.pFont == NULL )
    		Directx.pFont->OnLostDevice();
    	else
    	{
    		Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 0, 0), Directx.pFont, "[FU-CA]v2 By Gellin for www.*********.com");
    		Menu.RenderMenu();
    	}
    
    	if( Menu.mOpt[2].nopt > 0 )//Fly Hack
    		if( GetAsyncKeyState( FLYKEY ) < 0 )
    			this->PushToConsole( "PlayerGravity 800" );
    		else
    			this->PushToConsole( "PlayerGravity -800" );
    
    	if( Menu.mOpt[12].nopt > 0 )
    		Menu.PanicKey();
    	
    }
    
    //4x Per Second
    void cBase::Update(void)
    {
    	while(1)
    	{
    		if( Menu.mOpt[1].nopt > 0 )//3D Box's
    			this->PushToConsole( "ModelDebug_DrawBoxes 1" );
    		else
    			this->PushToConsole( "ModelDebug_DrawBoxes 0" );
    
    		if( Menu.mOpt[3].nopt > 0 )//No Fog
    			this->PushToConsole( "FogEnable 0" );
    		else
    			this->PushToConsole( "FogEnable 1" );
    
    		Sleep(iRenderSpeed);
    
    		if( Menu.mOpt[4].nopt > 0 )//Speed Hack
    		{
    		    this->PushToConsole("BaseMoveAccel 3000.000000");
    			this->PushToConsole("StartAccel 3000.000000");
    			this->PushToConsole("MaxAccel 3000.000000");
    			this->PushToConsole("AccelInc 3000.000000");
    			this->PushToConsole("WalkVel 3000.000000");
    			this->PushToConsole("FRunVel 3000.000000");
    		    this->PushToConsole("BRunVel 3000.000000");
    			this->PushToConsole("SRunVel 3000.000000");
    		    this->PushToConsole("JumpVel 3000.000000");
    			this->PushToConsole("DuckVel 3000.000000");
    		}else{
    			this->PushToConsole("BaseMoveAccel 3000.000000");
    			this->PushToConsole("StartAccel 500.000000");
    			this->PushToConsole("MaxAccel 3000.000000");
    			this->PushToConsole("AccelInc 6000.000000");
    			this->PushToConsole("WalkVel 70.000000");
    			this->PushToConsole("FRunVel 285.000000");
    			this->PushToConsole("BRunVel 285.000000");
    			this->PushToConsole("SRunVel 285.000000");
    			this->PushToConsole("JumpVel 330.000000");
    			this->PushToConsole("DuckVel 50.000000");
    		}
    
    		Sleep(iRenderSpeed);
    
    		if( Menu.mOpt[5].nopt > 0 )//Less Spread
    		{
    			this->PushToConsole("PerturbRotationEffect  0.000000"); 
    			this->PushToConsole("PerturbIncreaseSpeed 0.000000"); 
    			this->PushToConsole("PerturbWalkPercent 0.000000"); 
    			this->PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
    		}else{
    			this->PushToConsole("PerturbRotationEffect 3.000000");
    			this->PushToConsole("PerturbIncreaseSpeed 3.000000");
    			this->PushToConsole("PerturbDecreaseSpeed 9.000000");
    			this->PushToConsole("PerturbWalkPercent 0.500000");
    		}
    
    		Sleep(iRenderSpeed);
    
    		switch ( Menu.mOpt[6].nopt )//This Doesnt move your player pos it moves your Cam Pos
    		{
    			case 0://Defualt
    				this->PushToConsole("CamMaxPosYOffset 200.000000");
    				this->PushToConsole("DuckDownCamOffSet -13.000000");
    				break;
    			case 1://Up in the Air after u hit CNTRL
    				this->PushToConsole("CamMaxPosYOffset 200.000000");
    				this->PushToConsole("DuckDownCamOffSet 1000.000000");
    				break;
    			case 2://Under the Map after u hit CNTRL
    				this->PushToConsole("CamMaxPosYOffset -1000.000000");
    				this->PushToConsole("DuckDownCamOffSet -13.000000");
    				break;
    		}
    
    		Sleep(iRenderSpeed);
    
    		if( Menu.mOpt[7].nopt  > 0 )//Tracers
    			this->PushToConsole( "ShowFirePath 1" );
    		else
    			this->PushToConsole( "ShowFirePath 0" );
    
    		if( Menu.mOpt[8].nopt  > 0 )//Windowed Mode
    			this->PushToConsole( "windowed 1" );
    		else
    			this->PushToConsole( "windowed 0" );
    
    		if( Menu.mOpt[9].nopt > 0 )//Fps
    			this->PushToConsole( "ShowFps 1");
    		else
    			this->PushToConsole( "ShowFps 0");
    
    		if( Menu.mOpt[10].nopt > 0 )// Unlock Cursor
    			this->PushToConsole( "CursorCenter 0");
    		else
    			this->PushToConsole( "CursorCenter 1");
    
    		if( Menu.mOpt[11].nopt > 0 )//No Guns
    			this->PushToConsole("drawguns 0");
    		else
    			this->PushToConsole("drawguns 0");
    		
    		if( Menu.mOpt[12].nopt > 0 )//Nx Chams	
    			this->PushToConsole("SkelModelStencil -1" );
    
    		if( Menu.mOpt[13].nopt > 0 )//Long Pickup
    			this->PushToConsole("ActivationDistance 999999" );
    		
    		if( Menu.mOpt[14].nopt > 0 )//Hover
    			this->PushToConsole("PlayerGravity 0");
    PushToConsole("PlayerVelocity 0");
    		Sleep(iRenderSpeed);
    	}
    }
    
    DWORD cBase::GetPointer(int index)
    {
    	DWORD* devicePtr = ***(DWORD****)0x7E4CE0;
    
    	if( devicePtr == NULL ) 
    		return 0;
    
    	return devicePtr[index];
    }
    
    bool cBase::IsGameReadyForHook(void)
    {
        if( GetModuleHandle( "d3d9.dll"     ) != NULL 
         && GetModuleHandle( "ClientFX.fxd" ) != NULL 
         && GetModuleHandle( "CShell.dll"   ) != NULL )
            return true;
    
        return false;
    }
    
    DWORD WINAPI dwMainThread(LPVOID)
    {
    	while ( !Base.IsGameReadyForHook() )
    		Sleep(iWaitTime);
    
    	Directx.Hook();
    
    	return 0;
    }
    	
    DWORD WINAPI dwHackThread(LPVOID)
    {
    	while( !Base.IsGameReadyForHook() )
    		Sleep(iWaitTime);
    
    	Base.Update();
    
    	return 0;
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		#ifdef LOG
    			DeleteFile(LogPath); 
    		#endif
    
    		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    		CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    	}
    	return TRUE;
    }

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Understand the code, Before you try to use it

  3. #3
    calvinchau309's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    How do i understand it? Whats different?

  4. #4
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    741
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    yep do u know what it all means/does??
    if not i wont tell you whats wrong

    PS:kind imbaresing how old is this 5-6 months?

    steel o-o's sig =
    = Done , = Not Done

    Leecher 0 =
    Newbie 25 =
    Member 50 =
    Advanced Member 100 =
    H4X0R Member 150 =
    Dual-Keyboard Member 250 =
    Expert Member 500 =
    's Trainer 750 =
    MPGH Expert 1000 =
    Synthetic Hacker 1250 =
    Blackhat Hacker 1500 =
    Whitehat Hacker 2000 =
    's Guardian 2500 =
    Upcoming MPGHiean 3000 =
    MPGH Addict 3500 =
    MPGHiean 4000 =
    MPGH Knight 4500 =
    MPGH Lord 5000 =
    MPGH Champion 5500 =
    MPGH King 6000 =
    MPGH Legend 6500 =
    MPGH God 7000 =
    MPGH God II 7500 =
    MPGH God III 8000 =
    MPGH God IV 8500 =
    MPGH God V 9000 =
    Arun's Slave 9500 =
    Dave's Slave 10000 =

  5. #5
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    [YOUTUBE]4Q4G0L_m-f4[/YOUTUBE]

  6. The Following User Says Thank You to NOOB For This Useful Post:

    markoj (02-20-2011)

  7. #6
    justiniscool5's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    idk
    Posts
    884
    Reputation
    -12
    Thanks
    182
    My Mood
    Bitchy
    LOL FAIL THAT PTC IS PATCHED all ready get a new PTC