Thread: help

Results 1 to 10 of 10
  1. #1
    TayxPwnage's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    29
    Reputation
    10
    Thanks
    0

    help

    Ok..just to say this before every1 start to flame..I DONT plan on releasing any hacks..I just want 1 for myself..now I have this code which is Hans menu and Gellins base combined by whit...I take no credits for it at all..

    I compile with no errors but when I inject CA just crashes at the guy running. Yeah I know im stupid and a noob

    Just plawks help meee
    Code:
    ////////////////////////////////////////////////////
    //					Credits
    //
    //					Gellin08 aka Gellin( Tha Base )
    //					tim0n and ****** (Getpointer and wait functions)
    //					Ghoster	( pro )
    //					Sinner	( Cdetour mods )
    //					z0mbie  ( ADE32 )
    //					LanceVorigin ( original cdetour class )
    //					Micro ( original menu )
    
    #include "Base.h"
    #include "Menu.h"
    
    cBase Base;
    
    void __cdecl cBase::PushToConsole( const char* szCommand )
    {
    	DWORD *LTClient = ( DWORD* )( 0x377E6C84 );
    	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, "Darktaylers private hack for FRIENDS");
    		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");
    
    		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
    StupidLittleNoob's Avatar
    Join Date
    Aug 2010
    Gender
    female
    Posts
    60
    Reputation
    10
    Thanks
    4
    Device pointer is wrong.

  3. #3
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Need New Hook Mate..

    Wait No One Help Him He Didnt Thanks My Release Of The Base...

  4. The Following User Says Thank You to whit For This Useful Post:

    markoj (09-01-2010)

  5. #4
    swatfx's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    661
    Reputation
    20
    Thanks
    108
    My Mood
    Mellow
    u also need a different method of PTC

  6. #5
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead

    Maybe cause you don't know what you doing.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  7. #6
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    No One Help Him He Didnt Thanks My Release Of The Base

  8. #7
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,067
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Quote Originally Posted by whit View Post
    Need New Hook Mate..

    Wait No One Help Him He Didnt Thanks My Release Of The Base...
    LMAO, now i wont thank you because you didnt thank whit, and because you used the word plawx
    Dont ban me

  9. The Following User Says Thank You to markoj For This Useful Post:

    whit (09-01-2010)

  10. #8
    TayxPwnage's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    29
    Reputation
    10
    Thanks
    0
    Well I didnt thank because I didnt know how to use it..but I gave you credits and ill thank you!!!

  11. #9
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    uhhhh wrong LTC maybe? I think the one i posted was wrong

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  12. #10
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Everything In The Base I Released Is UptoDate( Except The Hook ) That Code At The Top Isnt In The One I Released...

Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 06:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 04:17 AM
  3. [Help Request] Injector Admin help
    By asdfgas in forum Combat Arms Help
    Replies: 4
    Last Post: 04-27-2011, 07:12 PM
  4. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 08:15 PM
  5. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 02:41 PM