Thread: FRUSTRATED!

Page 1 of 3 123 LastLast
Results 1 to 15 of 40
  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

    FRUSTRATED!

    UGH! I am getting frustrated! I made a hack that uses hot keys. With the help of Alessandro, I have been able to not d/c when testing it. Now none of the fking hacks work! Somebody please help. No compiling errors, no Combat Arms errors, they just don't work when the correct button is pushed. Here is the code.

    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* )( 0x37817E30 );
    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
    ProGamerX's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    124
    Reputation
    9
    Thanks
    20
    My Mood
    Cool
    U base will not work Because this part is Detected:
    Code:
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )( 0x37817E30 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }

  3. #3
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Here's a public console calling method.

    Code:
    void __cdecl CPush(const char *Command, char *Value)
    {
    char *PCommand = new char[256]; //Define PCommand
    sprintf(PCommand, "%s %s", Command, Value); //Define PCommand as "Command(Space)Value"
    DWORD LTC = 0x00485E10;// //Define the LTC (Gordon's LTC)
    void *Control = (void*)LTC; //Define Control method as the LTC
    __asm //Start of ASM code
    {
    push PCommand;
    call Control;
    add esp, 4;
    }
    }
    To use , here is an example :
    Code:
    CPush("ActivationDistance","99999");
    Notice how theres another " after the name of the command and its value.

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

    yaserifti1 (02-05-2011)

  5. #4
    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 UnknownCoder View Post
    Here's a public console calling method.

    Code:
    void __cdecl CPush(const char *Command, char *Value)
    {
    char *PCommand = new char[256]; //Define PCommand
    sprintf(PCommand, "%s %s", Command, Value); //Define PCommand as "Command(Space)Value"
    DWORD LTC = 0x00485E10;// //Define the LTC (Gordon's LTC)
    void *Control = (void*)LTC; //Define Control method as the LTC
    __asm //Start of ASM code
    {
    push PCommand;
    call Control;
    add esp, 4;
    }
    }
    To use , here is an example :
    Code:
    CPush("ActivationDistance","99999");
    Notice how theres another " after the name of the command and its value.
    Thanks, will try, if works will rep+thanks if not, will thanks xD
    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 -

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

    speedforyou (02-05-2011)

  7. #5
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Quote Originally Posted by yaserifti1 View Post
    Thanks, will try, if works will rep+thanks if not, will thanks xD
    Lol okay , just here to help. If you need help , write the problem here

  8. #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 UnknownCoder View Post


    Lol okay , just here to help. If you need help , write the problem here
    New problem now

    Code:
    c:\users\administrator\documents\visual studio 2010\projects\cahacks1\cahacks1\base.cpp(15): error C3861: 'sprintf': identifier not found
    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 -

  9. #7
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Go scroll all the way to the top and add this ->
    Code:
    #include <stdio.h>

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

    yaserifti1 (02-05-2011)

  11. #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 UnknownCoder View Post
    Go scroll all the way to the top and add this ->
    Code:
    #include <stdio.h>
    Thanks, just wanted to know the #include lol I didnt wanna have to go through and check. Thanks! Testing atm.
    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 -

  12. #9
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Quote Originally Posted by yaserifti1 View Post
    Thanks, just wanted to know the #include lol I didnt wanna have to go through and check. Thanks! Testing atm.
    No problem , post results here bro.

  13. #10
    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 UnknownCoder View Post


    No problem , post results here bro.
    Ok btw check your friend requests
    Also, give me bout 10 minutes, my combat arms files are tainted with a new rez mod I made while waiting for you to reply
    I'm bout to use the patcher in the rez modding section, and then test it. Will post results!
    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 -

  14. #11
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Quote Originally Posted by yaserifti1 View Post
    Ok btw check your friend requests
    Also, give me bout 10 minutes, my combat arms files are tainted with a new rez mod I made while waiting for you to reply
    I'm bout to use the patcher in the rez modding section, and then test it. Will post results!
    Take your time. Post results here so i know if you need help or not :P

  15. #12
    yaserifti1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    The finest pussies of Earth
    Posts
    251
    Reputation
    9
    Thanks
    10
    My Mood
    Angelic
    ugh, didn't work. It doesn't disconnect me or give me errors, it just doesn't work when I press the correct hot key.
    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 -

  16. #13
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Quote Originally Posted by yaserifti1 View Post
    ugh, didn't work. It doesn't disconnect me or give me errors, it just doesn't work when I press the correct hot key.
    It should work.Are you sure you changed the way you call the console? CPush("hack","value"); ?

  17. #14
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Console command hacks must called in Present.

  18. #15
    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 UnknownCoder View Post


    It should work.Are you sure you changed the way you call the console? CPush("hack","value"); ?
    Yep, look -
    Code:
    #include <windows.h>
    #include <stdio.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 CPush(const char *Command, char *Value)
    {
    char *PCommand = new char[256]; 
    sprintf(PCommand, "%s %s", Command, Value); 
    DWORD LTC = 0x00485E10;
    void *Control = (void*)LTC; 
    __asm 
    {
    push PCommand;
    call Control;
    add esp, 4;
    }
    }
    void main() {
    while(true) {
    
    if(GetAsyncKeyState(VK_NUMPAD1)&1){
    chams =! chams;
    }
    if(chams)
    {
    CPush("SkelModelStencil", "1");
    } else {
    CPush("SkelModelStencil", "0");
    }
    if(GetAsyncKeyState(VK_NUMPAD2)&1){
    cross =! cross;
    }
    if(cross) {
    CPush("CrossHairR", "255");
    } else {
    CPush("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 -

Page 1 of 3 123 LastLast