Thread: help with base

Results 1 to 8 of 8
  1. #1
    qcethe's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    3
    My Mood
    Scared

    help with base

    this is my base

    [HTML]
    #include "stdafx.h"
    #include "Hook.h"
    #include <windows.h>
    #define Engine 0x4A4830

    typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
    RunConsoleCommand_t PushToConsole = (RunConsoleCommand_t)0x00485E10;

    bool Tracers = false;


    HRESULT WINAPI hkPresent(LPDIRECT3DDEVICE9 pDevice,CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion){
    _asm PUSHAD;


    if(GetAsyncKeyState(VK_NUMPAD1)<0)
    if(Tracers){
    PushToConsole("ShowFirePath 1" );
    Tracers = true;
    }else{
    PushToConsole("ShowFirePath 0" );
    Tracers = false;
    }


    _asm POPAD;
    return oPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
    }


    HRESULT WINAPI hkReset(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* Parametri)

    {
    _asm NOP;



    HRESULT hTorna = oReset(pDevice, Parametri);

    if(SUCCEEDED(hTorna)){

    }
    return hTorna;
    }




    DWORD WINAPI Wait(LPVOID lpArgs){
    DWORD dwD3D9 = NULL;
    while(!dwD3D9){
    Sleep(20);
    dwD3D9 = (DWORD)GetModuleHandleA("d3d9.dll");
    }

    DWORD dwVTable[3] = {0};
    CreateDev( dwVTable );
    oReset = ( tReset ) Salta(( PBYTE ) dwVTable[0], ( PBYTE ) &hkReset ,5);
    oPresent = ( tPresent )Salta(( PBYTE ) dwVTable[1], ( PBYTE ) &hkPresent ,5);

    return FALSE;
    }
    [/HTML]


    it does compile and give me the dll but it doesnt work ingame.......

  2. #2
    wicho_koz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    194
    Reputation
    12
    Thanks
    52
    My Mood
    Shocked
    all PTC method has ben patched

  3. #3
    qcethe's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    3
    My Mood
    Scared
    are u serious, will which methods work??

  4. #4
    wicho_koz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    194
    Reputation
    12
    Thanks
    52
    My Mood
    Shocked
    Quote Originally Posted by qcethe View Post
    are u serious, will which methods work??
    I'm serious

  5. #5
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    Gordon's works, just D/C about 5 minutes in :S



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

  6. #6
    wicho_koz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    194
    Reputation
    12
    Thanks
    52
    My Mood
    Shocked
    Quote Originally Posted by _Fk127_ View Post
    Gordon's works, just D/C about 5 minutes in :S
    DONT WORKS I TESTED IT

    5 minutes = NO HACKS :P

  7. #7
    qcethe's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    3
    My Mood
    Scared
    so which methods work ppl

  8. #8
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Making America Great Again.
    Posts
    15,451
    Reputation
    1549
    Thanks
    6,234
    /MOVED TO HELP SECTION



    ^Thanks to RJ^