Results 1 to 11 of 11
  1. #1
    yaserifti1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    The finest pussies of Earth
    Posts
    251
    Reputation
    9
    Thanks
    10
    My Mood
    Angelic

    Adress problem apparently.[Help Please]

    Hey guys, I am working on a hotkey hack. I added 2 hacks to it. Crosshair, and Chams. When Combat Arms is loading, it disconnects. Please help me fix this.

    Code:
    #include <windows.h>
    bool chams = false;
    bool cross = false;
    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 *LTClient = ( DWORD* )( 0x3778BFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	
    void main() {
    while(true) {
    
    if(GetAsyncKeyState(VK_NUMPAD1)&1){
    chams =! chams;
    }
    if(chams)
    {
    PushToConsole("SkelModelStencil 1");
    } else {
    PushToConsole("SkelModelStencil 0");
    }
    if(GetAsyncKeyState(VK_NUMPAD2)&1){
    cross =! cross;
    }
    if(cross) {
    PushToConsole("CrossHairR 255");
    } else {
    PushToConsole("CrossHairR 0");
    }
    }
    }
    DWORD WINAPI dwHackThread(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, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    Key:
    = done
    = not done
    = working on it
    = damn I killed it!

    Accomplishments On MPGH:

    make a mod -

    make a gun to gun mod -

    make a hack -

    learn C++ -

    roast a nub -

  2. #2
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Ltc is wrong

  3. #3
    yaserifti1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    The finest pussies of Earth
    Posts
    251
    Reputation
    9
    Thanks
    10
    My Mood
    Angelic
    Quote Originally Posted by Alessandro10 View Post
    Ltc is wrong
    What is the right LTC?
    Key:
    = done
    = not done
    = working on it
    = damn I killed it!

    Accomplishments On MPGH:

    make a mod -

    make a gun to gun mod -

    make a hack -

    learn C++ -

    roast a nub -

  4. #4
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Quote Originally Posted by yaserifti1 View Post
    What is the right LTC?
    Code:
    0x37817E30

  5. The Following User Says Thank You to LionelMessi10 For This Useful Post:

    yaserifti1 (02-05-2011)

  6. #5
    Sid's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    New York
    Posts
    10,714
    Reputation
    927
    Thanks
    1,265
    Quote Originally Posted by yaserifti1 View Post
    Hey guys, I am working on a hotkey hack. I added 2 hacks to it. Crosshair, and Chams. When Combat Arms is loading, it disconnects. Please help me fix this.

    Code:
    #include <windows.h>
    bool chams = false;
    bool cross = false;
    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 *LTClient = ( DWORD* )( 0x3778BFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	
    void main() {
    while(true) {
    
    if(GetAsyncKeyState(VK_NUMPAD1)&1){
    chams =! chams;
    }
    if(chams)
    {
    PushToConsole("SkelModelStencil 1");
    } else {
    PushToConsole("SkelModelStencil 0");
    }
    if(GetAsyncKeyState(VK_NUMPAD2)&1){
    cross =! cross;
    }
    if(cross) {
    PushToConsole("CrossHairR 255");
    } else {
    PushToConsole("CrossHairR 0");
    }
    }
    }
    DWORD WINAPI dwHackThread(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, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    Lrn2spell
    -.- Address is spelled wrong and Lrn2code

  7. #6
    yaserifti1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    The finest pussies of Earth
    Posts
    251
    Reputation
    9
    Thanks
    10
    My Mood
    Angelic
    Quote Originally Posted by GHDVIP View Post
    Lrn2spell
    -.- Address is spelled wrong and Lrn2code
    Lrn2realise when problems are solved. -.-
    Key:
    = done
    = not done
    = working on it
    = damn I killed it!

    Accomplishments On MPGH:

    make a mod -

    make a gun to gun mod -

    make a hack -

    learn C++ -

    roast a nub -

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

    topblast (02-05-2011)

  9. #7
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Console command hacks must be called in present.

  10. #8
    yaserifti1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    The finest pussies of Earth
    Posts
    251
    Reputation
    9
    Thanks
    10
    My Mood
    Angelic
    Quote Originally Posted by ᴺᴼᴼᴮ View Post
    Console command hacks must be called in present.
    I kinda just learned how to code, what does that mean?
    Key:
    = done
    = not done
    = working on it
    = damn I killed it!

    Accomplishments On MPGH:

    make a mod -

    make a gun to gun mod -

    make a hack -

    learn C++ -

    roast a nub -

  11. #9
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    Quote Originally Posted by yaserifti1 View Post
    I kinda just learned how to code, what does that mean?
    Present is something in D3D...
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  12. #10
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    Quote Originally Posted by topblast View Post


    Present is something in D3D...
    Wut is this "D3D" You SHPEAK uf?



    Put this image in your signature if you support HTML5 development!

  13. #11
    yaserifti1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    The finest pussies of Earth
    Posts
    251
    Reputation
    9
    Thanks
    10
    My Mood
    Angelic
    Stop posting to this thread this problem has been solved!
    Key:
    = done
    = not done
    = working on it
    = damn I killed it!

    Accomplishments On MPGH:

    make a mod -

    make a gun to gun mod -

    make a hack -

    learn C++ -

    roast a nub -