Thread: [help]

Results 1 to 14 of 14
  1. #1
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    741
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy

    [help]


    Code:
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Coded By speedforyou's auto on hack from http://www.mpgh.net", "Injected", 0);
    		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    please help me
    Last edited by speedforyou; 08-15-2010 at 02:18 AM.

    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 =

  2. #2
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,561
    Reputation
    127
    Thanks
    5,912
    My Mood
    Happy
    Whats your error?
    -Rest in peace leechers-

    Your PM box is 100% full.

  3. #3
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    His error is

    http://img685.imageshack.us/img685/9259/error2d.jpg

    The anwser to that is that dwMainThread is not declared -_-

  4. #4
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    741
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    thanks help???

    can u help me fix???

    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
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    This is like the most simpilist of errors you can get... You dont have dwMainThread defined anywhere in your script yet you are trying to use it.

  6. #6
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24
    all you have to do is declare it in your globals..

    Code:
    int dwMainThread;

  7. #7
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,067
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Do you even have a main thread 0.0, if you do make sure its above that code.
    Dont ban me

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

    speedforyou (08-16-2010)

  9. #8
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Well actually he's probably trying to hook his hotkeys or whatever so something like this:

    Code:
    DWORD WINAPI dwMainThread(LPVOID)
    {
            while( !IsGameReadyForHook() )
            Sleep(200);
            Hakzors();
            return 0;
    }

  10. The Following User Says Thank You to CodeDemon For This Useful Post:

    speedforyou (08-16-2010)

  11. #9
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24
    haha this would be alot easier if he told us what he wanted to do and gave us his full source..

  12. The Following User Says Thank You to gcflames12 For This Useful Post:

    speedforyou (08-16-2010)

  13. #10
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    exactly (filler)

  14. The Following User Says Thank You to CodeDemon For This Useful Post:

    speedforyou (08-16-2010)

  15. #11
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24
    this is kind off of topic but can you make a hook for CA in detours and or VMT?

    and btw if your missing your mainthread you will want to add this above that block of code to fix your problems..

    Code:
    DWORD WINAPI dwMainThread(LPVOID)
    {
    	while (!Ready())
    		Sleep(200);
    	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
    	return 0;
    }
    Last edited by gcflames12; 08-15-2010 at 01:42 PM.

  16. The Following User Says Thank You to gcflames12 For This Useful Post:

    speedforyou (08-16-2010)

  17. #12
    025rog's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    50
    Reputation
    9
    Thanks
    9
    why dont you make it like ::MSGBOX?? i thnk thats rigth
    ^...,^ JR
    spare account LOL

  18. The Following User Says Thank You to 025rog For This Useful Post:

    speedforyou (08-16-2010)

  19. #13
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    741
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    my full source
    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;
    		}
    	}
    }
    
    BOOL WINAPI Main (LPVOID)
    {
    	bool Tracers = true;
    	bool nosky = false;
    	bool worldframe = false;
    	bool playerframe = false;
    	bool nogun = false;
    	bool Skeleton = false;
    	bool FogEnable = false;
    	bool CursorCenter = false;
    	bool nxchams = false;
    
    
    	while(1)
    	{
    		__asm pushad;
    		if(GetAsyncKeyState(VK_NUMPAD1)&1)
    		{
    			Tracers = !Tracers;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD2)&1)
    		{
    			nosky = !nosky;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD3)&1)
    		{
    			worldframe = !worldframe;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD4)&1)
    		{
    			playerframe = !playerframe;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD5)&1)
    		{
    			nogun = !nogun;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD6)&1)
    		{
    			Skeleton = !Skeleton;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD7)&1)
    		{
    			FogEnable = !FogEnable;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD8)&1)
    		{
    			CursorCenter = !CursorCenter;
    		}
    		if(GetAsyncKeyState(VK_NUMPAD9)&1)
    		{
    			nxchams = !nxchams;
    
    		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  (Tracers)
    			PushToConsole("ShowFirePath 1" );
    
    		else
    			PushToConsole("ShowFirePath 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);
    	}
    }
    }
    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 )
    	{
    		MessageBoxA(0, "Coded By speedforyou's auto on hack from http://www.mpgh.net", "Injected", 0);
    		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    Last edited by speedforyou; 08-16-2010 at 02:16 AM.

    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 =

  20. #14
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24
    yeah your missing your main thread add my function right before you disablethreadlibrarycalls

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