Results 1 to 11 of 11
  1. #1
    jonnyboy9985's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Canada :D
    Posts
    892
    Reputation
    -46
    Thanks
    66
    My Mood
    Chatty

    [HELP] Source Code Help

    here is my source code... None of my hacks even work so, can someone enlighten me?

    Code:
    #include <Windows.h>
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )( 0x3778CFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    
    }
    }
    
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
    && GetModuleHandleA( "CShell.dll"   ) != NULL )
    return true;
    return false;
    }  
    
    void main()
    {
    while (!IsGameReadyForHook()){
    Sleep(200);
    }
    bool spread = false;
    bool NxChams = false;
    bool Fps = false;
    bool speed = false;
    bool hover = false;
    bool tracers = false;
    bool flyer = false;
    bool distact = false;
    bool suicide = false;
    bool VUp = false;
    bool VDown = false;
    bool VFor = false;
    bool VBack = false;
    bool VDir1 = false;
    bool VDir2 = false;
    bool ghost = false;
    bool glitcher = false;
    bool nogun = false;
    bool weaponsway = false;
    while (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" );
    
    	
    	if(GetAsyncKeyState(VK_NUMPAD1)&1)
    	{
    		if(NxChams = !NxChams)
    		{
    			PushToConsole ("SkelModelStencil 1");
    			NxChams = 1;
    		
    		}
    		else
    		{
    			PushToConsole ("SkelModelStencil 0");
    			NxChams = 0;
    			
    			Sleep(200);
    		}
    
    	if(GetAsyncKeyState(VK_NUMPAD2)&1)
    	{
    		
    		if(speed = !speed)
    		{
    			PushToConsole ("BaseMoveAccel 3000.000000");
    			PushToConsole ("StartAccel 3000.000000");
    			PushToConsole ("MaxAccel 3000.000000");
    			PushToConsole ("AccelInc 3000.000000");
    			PushToConsole ("FRunVel 3000.000000");
    			PushToConsole ("BRunVel 3000.000000");
    			PushToConsole ("SRunVel 30000.000000");
    			PushToConsole ("DuckVel 3000.000000");
    			speed = 1;
    		}
    		else
    		{			
    			PushToConsole ("BaseMoveAccel 3000.000000");
    			PushToConsole ("StartAccel 500.000000");
    			PushToConsole ("MaxAccel 3000.000000");
    			PushToConsole ("AccelInc 6000.000000");
    			PushToConsole ("WalkVel 70.000000") ;
    			PushToConsole ("FRunVel 285.000000");
    			PushToConsole ("BRunVel 285.000000");
    			PushToConsole ("SRunVel 285.000000");
    			PushToConsole ("DuckVel 50.000000");
    			speed = 0;
    
    			Sleep (200);
    
    }
    		if(GetAsyncKeyState(VK_NUMPAD3)&1)
    		{
    			if(hover = !hover)
    			{
    			PushToConsole ("PlayerGravity 0");
    			PushToConsole ("PlayerVelocity 0");
    			hover = 1;
    
    		}
    		else
    		{
    			PushToConsole ("PlayerGravity 1");
    			PushToConsole ("PlayerVelocity 1");
    			hover = 0;
    			Sleep(200);
    		}
    			
    		if(GetAsyncKeyState(VK_NUMPAD4)&1)
    		{
    			if(tracers = !tracers)
    			{
    				PushToConsole("ShowFirePath 1" );
    				tracers = 1;
    				Sleep(200);
    			}
    			else
    			{
    				PushToConsole("ShowFirePath 0" );
    				tracers = 0;
    				Sleep(200);
    			}
    			if(GetAsyncKeyState(VK_NUMPAD7)<0)
    			{
    				if(flyer = !flyer)
    				{
    					PushToConsole("PlayerGravity -800");
    					flyer = 1;
    					Sleep(200);
    				}
    				else
    				{
    					PushToConsole("PlayerGravity 800");
    					flyer = 0;
    					Sleep(200);
    				}
    				if(GetAsyncKeyState(VK_NUMPAD5)&1)
    				{
    					if(distact = !distact)
    				{
    					PushToConsole("ActivationDistance 999999");
    					distact = 1;
    					Sleep(200);
    				}
    				else
    				{
    					PushToConsole("ActivationDistance 100000");
    					distact = 0;
    					Sleep(200);
    				}
    				if(GetAsyncKeyState(VK_NUMPAD6)<0)
    				{
    					if(suicide = !suicide)
    					{
    					PushToConsole("FragSelf 1");
    					suicide = 1;
    					Sleep(200);
    					}
    
    					else
    
    					{
    						PushToConsole("FragSelf 0");
    						suicide = 0;
    						Sleep(200);
    					}
    				}
    
    					if(GetAsyncKeyState(VK_NUMPAD8)&1)
    	{
    		
    		if(glitcher = !glitcher)
    		{
    			PushToConsole ("BaseMoveAccel 9000.000000");
    			PushToConsole ("StartAccel 9000.000000");
    			PushToConsole ("MaxAccel 9000.000000");
    			PushToConsole ("AccelInc 9000.000000");
    			PushToConsole ("FRunVel 9000.000000");
    			PushToConsole ("BRunVel 9000.000000");
    			PushToConsole ("SRunVel 90000.000000");
    			PushToConsole ("DuckVel 9000.000000");
    			glitcher = 1;
    		}
    		else
    		{			
    			PushToConsole ("BaseMoveAccel 3000.000000");
    			PushToConsole ("StartAccel 500.000000");
    			PushToConsole ("MaxAccel 3000.000000");
    			PushToConsole ("AccelInc 6000.000000");
    			PushToConsole ("WalkVel 70.000000") ;
    			PushToConsole ("FRunVel 285.000000");
    			PushToConsole ("BRunVel 285.000000");
    			PushToConsole ("SRunVel 285.000000");
    			PushToConsole ("DuckVel 50.000000");
    			glitcher = 0;
    
    			Sleep (200);
    
    			}
    				
    				if(GetAsyncKeyState(VK_F12)&1)
    				{
    					int progressor = 10;
    					int control = 10;
    
    					if(GetAsyncKeyState(VK_OEM_PLUS)&1)
    					{
    						if(VUp = !VUp)
    						{
    							PushToConsole("CamMaxPosYOffset 50.000000 "+ progressor);
    							VUp = 1;
    							Sleep(200);
    						}
    						else
    						{
    							PushToConsole("CamPosYOffset 000.000000");
    							VUp = 0;
    							Sleep(200);
    						}
    					}
    					if(GetAsyncKeyState(VK_OEM_MINUS)&1)
    					{
    						if(VDown = !VDown)
    						{
    							PushToConsole("CamMaxYOffSet -50.000000 " + progressor);
    							VDown = 1;
    							Sleep(200);
    						}
    						else
    						{
    							PushToConsole("CamMaxYOffSet 000.000000 ");
    							VDown = 0;
    							Sleep(200);
    						}
    					}
    					if(GetAsyncKeyState(0x49)&1)
    					{
    						if(VFor = ! VFor)
    						{
    							while(true)
    							PushToConsole("CamMaxZOffSet 50.000000 " + progressor);
    							VFor = 1;
    							Sleep(200);
    						}
    						else
    						{
    							PushToConsole("CamMaxOffSet 000.000000");
    							VFor = 0;
    							Sleep(200);
    						}
    						if(GetAsyncKeyState(0x4B)&1)
    						{
    							while(true)
    							PushToConsole("CamMaxZOffSet -50.000000 " - progressor);
    							VBack = 1;
    							Sleep(200);
    						}
    						else
    						{
    							PushToConsole("CamMaxZOffSet 000.000000");
    							VBack = 0;
    							Sleep(200);
    						}
    						if(GetAsyncKeyState(0x4A)&1)
    						{
    							while(true)
    							PushToConsole("CamMaxXOffSet 50.000000 " - progressor);
    							VDir1 = 1;
    							Sleep(200);
    						}
    						else
    						{
    							PushToConsole("CamMaxXOffSet 000.000000");
    							VDir1 = 0;
    							Sleep(200);
    						}
    						if(GetAsyncKeyState(0x4C)&1)
    						{
    							while(true)
    							PushToConsole("CamMaxXOffSet -50.000000 " - progressor);
    							VDir2 = 1;
    							Sleep(200);
    						}
    						else
    						{
    							PushToConsole("CamMaxXOffSet 000.000000");
    							VDir2 = 0;
    							Sleep(200);
    						}
    						ghost = 1;
    					}
    					else
    					{
    						PushToConsole("CamMaxXOffSet 000.000000");
    						PushToConsole("CamMaxYOffSet 000.000000");
    						PushToConsole("CamMaxZOffSet 000.000000");
    					}
    					if(GetAsyncKeyState(VK_NUMPAD8)&1)
    					{
    						if(nogun = !nogun)
    						{
    							PushToConsole("drawguns 1");
    							nogun = true;
    							Sleep(200);
    						}
    						else
    						{
    							PushToConsole("drawguns 0");
    							nogun = false;
    							Sleep(200);
    						}
    
    					}
    				}
    
    				}
    				}
    				}
    				}
    				}
    				}
    
    
    	
    		}
    
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    		if ( dwReason == DLL_PROCESS_ATTACH )
    		//system("https://www.mpgh.net/");	
    		{
    			if( MessageBox(0, TEXT("This is my hack in alpha version, credits go to void, Finish, Ac1d Burn... No Spread is auto activated, and the hotkeys are from 1-3 Enjoy\n\n                                     Wanna inject the hack?"), TEXT("Bonsai_Tree Hacks"), MB_YESNO)==IDYES){
    				#ifdef LOG
    					DeleteFile(LogPath); 
    				#endif
    
    				
    
    			}else{
    					//Hack Do not Attach
    				MessageBox(0, TEXT("Bonsa_Tree Hacks"), TEXT("Bonsai_Tree Hacks"), MB_ICONINFORMATION);
    			}
    		}
    		
    	return TRUE;
    }
    Can anyone help?
    And if ANYONE takes an idea from me, please credit
    Last edited by jonnyboy9985; 08-12-2010 at 08:23 AM.
    Sammy told me to...

  2. #2
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    735
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    what does not work on it??
    compiling it?
    dces at login screen???????????????????????? what???

  3. #3
    jonnyboy9985's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Canada :D
    Posts
    892
    Reputation
    -46
    Thanks
    66
    My Mood
    Chatty
    None of the features work I need help working this because it doesn't give ANYTHING for any of the hotkeys for windows xp, and 7


    [EDIT]////
    ***************
    The compiling is correct, but using PerX, on windows 7, and XP it doesn't work I need someone to help me why the hack features are not even working or showing up...
    Last edited by jonnyboy9985; 08-12-2010 at 08:19 AM.
    Sammy told me to...

  4. #4
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    735
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    well your best bet would be to first make a auto on hack like this
    Code:
    #include <windows.h>
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL 
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void __cdecl PushToConsole(const char* szCommand )
    {
    	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    	if( dwCShell != NULL )
    	{
    		DWORD *LTClient = ( DWORD* )( 0x3778CFB0 );
    		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    		__asm
    		{
    			push szCommand;
    			call CONoff;
    			add esp, 4;
    		}
    	}
    }
     
    void main()
    {
    while(true)
    {
    PushToConsole("ReloadSpeed 10000000000000.000000" );
    Sleep(50);
    PushToConsole("BloodSplatsMinNum 100000");
    Sleep(50);
    PushToConsole("BloodSplatsMaxNum 100000");
    Sleep(50);
    PushToConsole("BloodSplatsMinLifetime 100000");
    Sleep(50);
    PushToConsole("BloodSplatsMaxLifetime 100000");
    Sleep(50);
    PushToConsole("BloodSplatsMinScale 100000");
    Sleep(50);
    PushToConsole("BloodSplatsMaxScale 100000");
    Sleep(50);
    PushToConsole("BloodSplatsRange 100000");
    Sleep(50);
    PushToConsole("BloodSplatsPeturb 100000");
    Sleep(50);
    PushToConsole("BigBloodSizeScale 100000");
    Sleep(50);
    PushToConsole("BigBloodLifeScale 100000");
    Sleep(50);
    PushToConsole("DrawParticles 0");
    Sleep(50);
    PushToConsole("ShowFps 1");
    Sleep(50);
    PushToConsole("FogEnable 0" );
    Sleep(50);
    PushToConsole("ActivationDistance 999999" );
    Sleep(50);
    PushToConsole("DrawFlat 1" );
    Sleep(50);
    PushToConsole("CrossHairR 255");
    Sleep(50);
    PushToConsole("SkelModelStencil -1" );
    Sleep(50);
    PushToConsole("PerturbRotationEffect  0.000000" );
    Sleep(50);
    PushToConsole("PerturbIncreaseSpeed 0.000000" );
    Sleep(50);
    PushToConsole("PerturbWalkPercent 0.000000" );
    Sleep(50);
    PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
    Sleep(50);
    PushToConsole("PerturbRecoil 0.000000" );
    Sleep(50);
    PushToConsole("FireMovePerturb 0.000000" );
    Sleep(50);
    PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
    Sleep(50);
    PushToConsole("ZoomedFireMovePerturb 0.000000" );
    Sleep(50);
    PushToConsole("ZoomedFireDuckPerturb 0.000000" );
    Sleep(50);
    PushToConsole("KnockBack 0" );
    Sleep(50);
    PushToConsole("BaseMoveAccel 1700.000000");
    Sleep(50);
    PushToConsole("StartAccel 1700.000000");
    Sleep(50);
    PushToConsole("MaxAccel 1700.000000");
    Sleep(50);
    PushToConsole("AccelInc 1700.000000");
    Sleep(50);
    PushToConsole("WalkVel 1700.000000");
    Sleep(50);
    PushToConsole("FRunVel 1700.000000");
    Sleep(50);
    PushToConsole("BRunVel 1700.000000");
    Sleep(50);
    PushToConsole("SRunVel 1700.000000");
    Sleep(50);
    PushToConsole("SnowEnable 1" );
    Sleep(50);
    PushToConsole("PlayerToInfected 1");
    Sleep(50);
    PushToConsole("WhiteBlood 1" );
    Sleep(50);
    
    }
    }
    DWORD WINAPI dwHackThread(LPVOID) {
    while( !IsGameReadyForHook() )
    Sleep(300);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    if already dont then you have to serch around for a working hotkey base
    if you already did that then use it


    thank me

    if already dont then you have to serch around for a working hotkey base
    if you already did that then use it


    thank me
    Last edited by speedforyou; 08-12-2010 at 08:40 AM.

  5. #5
    jonnyboy9985's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Canada :D
    Posts
    892
    Reputation
    -46
    Thanks
    66
    My Mood
    Chatty
    I know but I don't want an auto on hack I wanna have hotkeys, and this isn't working
    Sammy told me to...

  6. #6
    Adon's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    2
    0x007d9200


    Did you update the LTClient?

  7. The Following User Says Thank You to Adon For This Useful Post:

    jonnyboy9985 (08-12-2010)

  8. #7
    jonnyboy9985's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Canada :D
    Posts
    892
    Reputation
    -46
    Thanks
    66
    My Mood
    Chatty
    Quote Originally Posted by Adon View Post
    0x007d9200


    Did you update the LTClient?
    Oh thanks

    [EDIT]////
    *************
    Nope... It still doesn't work, but it doesn't crash so its all good
    Last edited by jonnyboy9985; 08-12-2010 at 04:36 PM.
    Sammy told me to...

  9. #8
    ^...,^'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    New Zealand,Auckland
    Posts
    698
    Reputation
    4
    Thanks
    90
    My Mood
    Lonely
    LTC

    and pointers are msot prombs.

  10. #9
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Reason it Dont Work Because your putting "}" In Wrong Place
    You Might Wanna Learn Basics Before hand

  11. #10
    ^...,^'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    New Zealand,Auckland
    Posts
    698
    Reputation
    4
    Thanks
    90
    My Mood
    Lonely
    Quote Originally Posted by whit View Post
    Reason it Dont Work Because your putting "}" In Wrong Place
    You Might Wanna Learn Basics Before hand
    you mean c++?

  12. #11
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by ^...,^ View Post
    you mean c++?
    No Shit Idiot....

Similar Threads

  1. [Help] Source code +Help+Release
    By maxius12 in forum CrossFire Hacks & Cheats
    Replies: 33
    Last Post: 02-26-2010, 09:22 PM
  2. [HELP]Good injecter source code!
    By DeathHunter in forum Programming Tutorial Requests
    Replies: 7
    Last Post: 02-22-2010, 01:32 PM
  3. Need Help please(about source codes)
    By Laws_Vegas in forum C++/C Programming
    Replies: 5
    Last Post: 02-11-2010, 06:08 PM
  4. Can anyone help me get combat arms source codes that arent patched?
    By nikith988 in forum General Game Hacking
    Replies: 2
    Last Post: 11-05-2009, 10:48 PM
  5. Help with source code! Easy fast scope bot!
    By Zoom in forum C++/C Programming
    Replies: 22
    Last Post: 08-21-2009, 09:06 PM