Results 1 to 8 of 8
  1. #1
    damien1234's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    20

    Needing Help With Code

    #include <windows.h>

    #define dwpLTClient 0x377F47C4
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }

    void __cdecl PTC( const char* szCommand )
    {
    if( !IsGameReadyForHook || dwpLTClient == NULL )
    return;

    DWORD dwConsoleFunc = *( DWORD* )( dwpLTClient + 0x208 );
    DWORD dwRealCallA = ( dwConsoleFunc + 0x26 );//JMP to real func
    DWORD dwRealCallB = *(DWORD*)( dwRealCallA + 0x1 );
    DWORD dwRealCall = ( dwRealCallA + dwRealCallB + 0x5 );

    if( *(BYTE*)dwRealCallA == 0xE9 )
    dwConsoleFunc = dwRealCall;

    __asm
    {
    push szCommand;
    call dwConsoleFunc;
    add esp, 4;
    }
    }
    void main()
    {
    while(true)
    {
    PTC("ShowFps 1");
    }

    Sleep(200);
    }
    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;
    }




    // Note This Is My First Hack Attempted So Plz Keep Flamming To A Minimum Thanx
    //Problem Im Having Is That It Builds Perfect But Crashs At Running Man
    //Ive Tryed RuntoConsole sz_command & Push But All 3 Crash Can Someone Plz Lend A Hand For Anyone That Does Help Get This Going I Will Give Credits For Sure
    [CENTER]

  2. #2
    Aqollo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    fasfasfas
    Posts
    44
    Reputation
    10
    Thanks
    3
    My Mood
    Breezy

  3. #3
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    142
    You C + P that code make sure you find a new ptc method and a bypass so you wont dc

  4. #4
    HiddenoO's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Anchorage, AK
    Posts
    840
    Reputation
    33
    Thanks
    212
    My Mood
    Devilish
    You need to update the addies, and find a method for the bypass..

  5. #5
    BuRnYoUrSoUl's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    YO MOMMa
    Posts
    306
    Reputation
    10
    Thanks
    14
    My Mood
    Blah
    Needs to update that boi and coding is jk
    I will burn your soul to pieces :O
    or ashes k thats beta:O if you like my mods thank me plz Wanna fight with :O
    Want a sig done pm me yo THank me lolz current drawing
    How Do You like it
    MY CREATIONS MY SERVICE IS $2 for a sig and an avatar and or $1 each.


  6. #6
    kainoa's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    12
    My Mood
    Devilish
    Quote Originally Posted by damien1234 View Post
    #include <windows.h>

    #define dwpLTClient 0x377F47C4
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }

    void __cdecl PTC( const char* szCommand )
    {
    if( !IsGameReadyForHook || dwpLTClient == NULL )
    return;

    DWORD dwConsoleFunc = *( DWORD* )( dwpLTClient + 0x208 );
    DWORD dwRealCallA = ( dwConsoleFunc + 0x26 );//JMP to real func
    DWORD dwRealCallB = *(DWORD*)( dwRealCallA + 0x1 );
    DWORD dwRealCall = ( dwRealCallA + dwRealCallB + 0x5 );

    if( *(BYTE*)dwRealCallA == 0xE9 )
    dwConsoleFunc = dwRealCall;

    __asm
    {
    push szCommand;
    call dwConsoleFunc;
    add esp, 4;
    }
    }
    void main()
    {
    while(true)
    {
    PTC("ShowFps 1");
    }

    Sleep(200);
    }
    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;
    }
    This PTC method is towards CShell get a bypass or use gordon's toward Engine

    BYPASS
    Code:
    //Bypass Cshell
    typedef bool (*IsConnected_t)(void);
    
    bool IsIngame()
    {
        DWORD* LTBase = (DWORD*)LTClient;
        IsConnected_t pConnected = *(IsConnected_t*)(*LTBase + 0x8C);
    
        return pConnected();
    }
    #define dwpLTClient 0x377F47C4
    addy is wrong should be 0x377F4930 //(for ca na)

    #define EngLtc 0x4C8540 //Engine LTC
    #define LTClient 0x377F4930 //Only used for bypass

    gordon's engine PTC (aka RunConsoleCommand) method
    Code:
    //Push To Console Method Use Engine LTC By Gordon
    typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
    RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)EngLtc;
    if used be sure to cred!

    find a new EngineLTC ive looked around cant find one... (unable to dump engine idk y , i can dumb Cshell just find) ask around!

    Decided to help let me know how it goes is working for me.

  7. #7
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Making America Great Again.
    Posts
    15,451
    Reputation
    1549
    Thanks
    6,234
    wrong section dude



    ^Thanks to RJ^




  8. #8
    damien1234's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    20
    thanx kainoa for helping i will try first thing in the morning and ill let you know what accurses :P
    [CENTER]

Similar Threads

  1. need help with code
    By rangg in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 10-25-2010, 03:45 PM
  2. need help with code
    By rangg in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 8
    Last Post: 10-24-2010, 03:24 PM
  3. need help with coding vip console
    By GER-Domi. in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 13
    Last Post: 09-10-2010, 04:28 AM
  4. [HELP] Need help with code. REWARD
    By deadskulz in forum Visual Basic Programming
    Replies: 14
    Last Post: 05-24-2010, 06:35 AM
  5. I need help with codes
    By MATTHEW4422 in forum Combat Arms Help
    Replies: 0
    Last Post: 10-31-2009, 05:41 PM