Results 1 to 3 of 3

Hybrid View

  1. #1
    oFFiciaL101's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    29
    Reputation
    10
    Thanks
    5
    My Mood
    Amused

    Help with C++ Hack. =.='

    Hello Mpgh!

    I've been wanting to make a Combat Arms hack for sometime now, so I thought I'd start of reading various guides on how to make one. I am completely new to C++ aand would like to know if I'm doing it right and how to add push notifications into this hack, this hopefuly is a menu hack I am making, I am not sure.

    For example, CoderNever's guide:
    https://www.mpgh.net/forum/207-combat...arms-hack.html

    And found some Addies here:
    https://www.mpgh.net/forum/207-combat...es-7-10-a.html

    And some useful functions:
    https://www.mpgh.net/forum/207-combat...functions.html

    I've read all of it, and this is what I've made:

    Code:
    #include <windows.h>
    system("start https://www.mpgh.net/");
    bool IsGameReadyForHook()
    bool norecoil = false;
    {
    if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
    && GetModuleHandleA( "CShell.dll"   ) != NULL )
    return true;
    return false;
    }
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	
    void main()
    {
    while(true)
    {
    PushToConsole("SkelModelStencil 1");
    }
    void NoRecoilon()
    {
    	memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
    	memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
    	memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
    	memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
    	memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
    }
    void NoRecoiloff()
    {
    	memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3);
    	memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3);
    	memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3);
    	memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3);
    	memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3);
    }
    }
    DWORD WINAPI HackThread(LPVOID)
    {
    while( !IsGameReadyForHook() )
    Sleep(100);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, HackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    I'm just experiementing with the no recoil addy wondering if this is how you put it in the code thing, and is "bool norecoil = false;" global variable in the right place? If anyone can point me in the right direction, I will deeply appreciate it.

  2. #2
    oFFiciaL101's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    29
    Reputation
    10
    Thanks
    5
    My Mood
    Amused
    Mods delete this please, I've just read https://www.mpgh.net/forum/207-combat...-commands.html and now I know what to do now, completely screwed the no recoil in this one yeah?


    Free VIP!^


    Lawls!, Fail hard disk, I need a SSD ):<, but the rest is...

    "I will use Google before asking dumb questions."

    I read this, and I reckon all choobs should read this.

  3. #3
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    /Close request by OP.
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [Help Request] Need help with these hacks..
    By mgelmo11 in forum Vindictus Help
    Replies: 4
    Last Post: 07-28-2011, 10:50 PM
  2. [Help Request] Help with Crossfire hacks?
    By SkullistE1 in forum CrossFire Help
    Replies: 5
    Last Post: 07-13-2011, 02:09 PM
  3. [Help Request] i need help with the hack im using
    By kingster626 in forum Combat Arms Help
    Replies: 12
    Last Post: 06-18-2011, 10:15 PM
  4. [Help Request] I need Help With CAEU Hacks
    By ♪ςander!♪ in forum Combat Arms EU Help
    Replies: 3
    Last Post: 06-08-2011, 03:47 AM
  5. [Help Request] help with ca hacks
    By moises8 in forum Combat Arms Help
    Replies: 4
    Last Post: 05-10-2011, 05:55 PM