Page 1 of 8 123 ... LastLast
Results 1 to 15 of 120
  1. #1
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,845
    My Mood
    Relaxed

    Arrow Make a SIMPLE D3D MENU

    yeah! make your own Chams wallhack

    [FONT="Courier New"]This is only for D3D MENU Chams, if you want this hack to work,
    Then you have to edit again
    and one condition: Use your creativity


    Directly to the topic
    you just simply copy and paste into your new project

    For haider :

    Functions.h
    Code:
    //==================================================================
    // This file is part of Qmoainxbase D3D Private part 1
    // (c) copyright Qmoainx 2011
    // special thanks to: mpgh.net 
    //==================================================================
    
    #include "SystemIncludes.h"
    
    
    void PrintText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font)
    {
        RECT FontRect = { x, y, x+500, y+30 };
        font->DrawText( NULL, pString, -1, &FontRect, DT_LEFT | DT_WORDBREAK, col);
    }
    
    void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
    {
        if( w < 0 )w = 1;
        if( h < 0 )h = 1;
        if( x < 0 )x = 1;
        if( y < 0 )y = 1;
    
        D3DRECT rec = { x, y, x + w, y + h };
        pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
    }
    
    void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
    {
        FillRGB( x, (y + h - px), w, px,    BorderColor, pDevice );
        FillRGB( x, y, px, h,                BorderColor, pDevice );
        FillRGB( x, y, w, px,                BorderColor, pDevice );
        FillRGB( (x + w - px), y, px, h,    BorderColor, pDevice );
    }
    
    void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
    {
        FillRGB( x, y, w, h,        BoxColor, pDevice );
        DrawBorder( x, y, w, h, 1,    BorderColor, pDevice );
    }  
    
    bool isMouseinRegion(int x1, int y1, int x2, int y2) 
    {
            POINT cPos;
            GetCursorPos(&cPos);
            if(cPos.x > x1 && cPos.x < x2 && cPos.y > y1 && cPos.y < y2){
                    return true;
            } else {
                    return false;
            }
    }
    
    bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
    {
            for(;*szMask;++szMask,++pData,++bMask)
                    if(*szMask=='x' && *pData!=*bMask)  
                            return 0;
            return (*szMask) == NULL;
    }
    
    DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
    {
            for(DWORD i=0; i<dwLen; i++)
                    if (bCompare((BYTE*)(dwAddress+i),bMask,szMask))  
                            return (DWORD)(dwAddress+i);
            return 0;
    }
    
    void *DetourFunction (BYTE *src, const BYTE *dst, const int len)//edit if you want to work for the game
    {
                    BYTE *jmp = (BYTE*)malloc(len+5);
            DWORD dwBack;
    
            VirtualProtect(src, len, PAGE_EXECUTE_READWRITE, &dwBack);
            memcpy(jmp, src, len);  
            jmp += len;
            jmp[0] = 0xE9;
            *(DWORD*)(jmp+1) = (DWORD)(src+len - jmp) - 5;
            src[0] = 0xE9;
            *(DWORD*)(src+1) = (DWORD)(dst - src) - 5;
            for (int i=5; i<len; i++)  src[i]=0x90;
            VirtualProtect(src, len, dwBack, &dwBack);
            return (jmp-len);
    }

    QmoMenuClass.h
    Code:
    //==================================================================
    // This file is part of Qmoainxbase D3D Private part 1
    // (c) copyright Qmoainx 2011
    // special thanks to: 
    //   mpgh.net
    //==================================================================
    #include "Functions.h"
    
    
    typedef struct{
            int index;
            char * title;
            int *hack;
            int hackmaxval;
            int hacktype;
            DWORD HCOLOR;
    }ITEM;
    
    class QmoMenu {
            public:
            LPDIRECT3DDEVICE9 pDevice;
            LPD3DXFONT pFont;
    
            int hackcount;
            int selector;
            int x,y,w,h;
            DWORD COLOR;
    
            ITEM HACKITEM[99];
            char hackrval[256];
    
            void CreateItem(int index, char * title, int *hack,int hackmaxval=1,int hacktype=0);
            void BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice);
            void RenderMenu();
    };
    
    typedef HRESULT ( WINAPI* oReset )( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );//edit if you want to work for the game
    typedef HRESULT (WINAPI* oEndScene)(LPDIRECT3DDEVICE9 pDevice);
    
    //Colors A,R,G,B Please use to make Chams 
    #define RED D3DCOLOR_ARGB(255, 255, 0, 0)
    #define GREEN D3DCOLOR_ARGB(255, 0, 255, 0)
    #define BLUE D3DCOLOR_ARGB(255, 0, 0, 255)
    #define WHITE D3DCOLOR_ARGB(255, 255, 255, 255)
    #define BLACK D3DCOLOR_ARGB(255, 0, 0, 0)
    #define YELLOW D3DCOLOR_ARGB(255, 255, 255, 0)
    #define TEAL D3DCOLOR_ARGB(255, 0, 255, 255)
    #define PINK D3DCOLOR_ARGB(255, 255, 240, 0)
    #define ORANGE D3DCOLOR_ARGB(255, 255, 132, 0)
    #define LIME D3DCOLOR_ARGB(255, 198, 255, 0)
    #define SKYBLUE D3DCOLOR_ARGB(255, 0, 180, 255)
    #define MAROON D3DCOLOR_ARGB(255, 142, 30, 0)
    #define LGRAY D3DCOLOR_ARGB(255, 174, 174, 174) 
    #define DGRAY D3DCOLOR_ARGB(255, 71, 65, 64) 
    #define BROWN D3DCOLOR_ARGB(255, 77, 46, 38)
    #define SHIT D3DCOLOR_ARGB(255, 74, 38, 38)
    SystemIncludes.h
    Code:
    //==================================================================
    // This file is part of Qmoainxbase D3D Private part 1
    // (c) copyright Qmoainx 2011
    // special thanks to: mpgh.net 
    //==================================================================
    
    #include <Windows.h>
    #include <stdio.h>
    #include <d3d9.h>
    #include <d3dx9.h>
    
    #pragma comment(lib,"d3dx9.lib")

    and this for Source Files, on the your project

    D3dbase.cpp
    Code:
    //==================================================================
    // This file is part of Qmoainxbase D3D Private part 1
    // (c) copyright Qmoainx 2011
    // special thanks to: mpgh.net 
    //==================================================================
    #include "QmoMenuClass.h"
    
    oReset pReset;
    oEndScene pEndScene;
    
    QmoMenu dMenu;
    
    LPDIRECT3DDEVICE9 g_pDevice = 0;
    //Offset Adjust Font Menu Hack
    int xFontOffSet = 15;
    
    int hackopt1;
    int MenuHeight = 10;
    
    int show=1;
    
    int b = 0;
    //==================================================================
    //Menu HACK
    int hack1 = 0;
    int hack2 = 0;
    int hack3 = 0;
    int hack4 = 0;
    int hack5 = 0;
    //==================================================================
    
    void QmoMenu::CreateItem(int index, char * title, int *hack, int hackmaxval,int hacktype)
    {
            hackcount++;
            HACKITEM[hackcount].index = index;
            HACKITEM[hackcount].hack = hack;
            HACKITEM[hackcount].hackmaxval = hackmaxval;
            HACKITEM[hackcount].hacktype = hacktype;
            // Set the high and low Menu Hack
            PrintText(title, xFontOffSet, index*15,HACKITEM[hackcount].HCOLOR,pFont); 
    }
    
    void QmoMenu::BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)
    {
            if(GetAsyncKeyState(VK_INSERT)&1)show=(!show); //Bring up the Menu HACK (INSERT)
            if(!show) {
                    DrawBox(0,0, w, 20, BACKCOLOR, BORDERCOLOR, pDevice);
                    PrintText("Qmoainx D3D MENU", 5, 2, TITLECOL, pFont);
                    return;
            }
    
           // DrawBox(x,y, w, h, BACKCOLOR, BORDERCOLOR, pDevice); // Adjust the Base Menu Hack
            PrintText(menuname, x+10, y+2, TITLECOL, pFont);
            CreateItem(1,"Wallhack", &hack1);
            CreateItem(2,"Chams", &hack2); 
            CreateItem(3,"Crosshair", &hack3);
            CreateItem(4,"NO Smoke", &hack4);
            CreateItem(5,"?????", &hack5);
            RenderMenu();
    }
    
    
    void QmoMenu::RenderMenu() //Hotkey menu
    {
            if(GetAsyncKeyState(VK_DOWN)&1) 
                            selector++;
    
            if(GetAsyncKeyState(VK_UP)&1)
                    if(selector > 1)
                            selector--;
    
            if (GetAsyncKeyState(VK_RIGHT)<0){
                    for(int i=0;i < (hackcount+1);i++){
               if(selector == HACKITEM[i].index){
                               if(*HACKITEM[i].hack < HACKITEM[i].hackmaxval)
                                            *HACKITEM[i].hack += 1;
    
                                            }
                            }
            }
    
            if (GetAsyncKeyState(VK_LEFT)<0){
                    for(int i=0;i < (hackcount+1);i++){
               if(selector == HACKITEM[i].index){
                               *HACKITEM[i].hack = 0;
                               Sleep(200);
                                    }
                            }
            }
            
            for(int i=0;i < (hackcount+1);i++){
                    if(selector == HACKITEM[i].index)
                            HACKITEM[i].HCOLOR = GREEN;
                    else
                            HACKITEM[i].HCOLOR = RED;
            }
    
            for(int i=1; i<(hackcount+1); i++){
                    if(HACKITEM[i].hacktype == 0){
                    if(*HACKITEM[i].hack == 1) 
    
                    // Set the high and low Hotkey Menu
                    PrintText("On", xFontOffSet+100, HACKITEM[i].index*15,WHITE,pFont);
             else 
                    PrintText("Off", xFontOffSet+100, HACKITEM[i].index*15,RED,pFont);
            
                    }
            }
    
            if(selector < 1)
                    selector = 1;
    
            if(selector > hackcount)
                    selector = 1;
    
            hackcount = 0;
    }
    
    void TestThread() //Raising texk if ON / OFF
    {
            if( hack1 == 1)
                    PrintText("Wallhack [ON] text will change color", 30, 200, GREEN, dMenu.pFont);
            else
                    PrintText("Wallhack [ON] text will change color", 30, 200, RED, dMenu.pFont);
    } //Customize it
    
    void ReFont(LPDIRECT3DDEVICE9 pDevice) //For replacement fonts
    {
        if (g_pDevice != pDevice)
        {
            g_pDevice = pDevice;
            try
            {
                if (dMenu.pFont != 0)
                    dMenu.pFont->Release();
            } catch (...) {}
            dMenu.pFont = 0;
            D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &dMenu.pFont ); 
        }
    }
    
    HRESULT WINAPI Reset(IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
    {
            dMenu.pFont->OnLostDevice();
    
            HRESULT hRet = pReset(pDevice, pPresentationParameters);
    
            dMenu.pFont->OnResetDevice();
    
            return hRet;
    }
    
    // Menu TITLE
    HRESULT WINAPI EndScene(LPDIRECT3DDEVICE9 pDevice)
    {
            ReFont(pDevice);
            dMenu.BuildMenu("mpgh.net 2011",0,0,190,200,RED,BLACK,GREEN,pDevice);
            TestThread();
            return pEndScene(pDevice);
    }
    
    int D3Dinit(void)//edit if you want to work for the game
    {
            DWORD           hD3D, adr, *vtbl;
            hD3D=0;
            do {
                    hD3D = (DWORD)GetModuleHandle("d3d9.dll");
                    Sleep(10);
            } while(!hD3D); 
            adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
            if (adr) {
                    memcpy(&vtbl,(void *)(adr+2),4);
                    pReset    = (oReset)    DetourFunction((PBYTE)vtbl[16]   , (PBYTE)Reset   ,5);
                    pEndScene = (oEndScene) DetourFunction((PBYTE)vtbl[42], (PBYTE)EndScene,5);
            }
            return 0;
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )//edit if you want to work for the game
    {
            DisableThreadLibraryCalls(hDll);
    
            if ( dwReason == DLL_PROCESS_ATTACH ) {
    
                    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3Dinit, NULL, NULL, NULL);
            }
            if( dwReason == DLL_PROCESS_DETACH)     {
                    dMenu.pFont->Release();
            }
            return TRUE;
    }
    completed....!
    Now try taking your test> D3D9test, if successful .... it will be like this picture :


    remember!
    if you want to hack it to work, then you need to EDIT this

    if successful .... it will be like this picture :




    Hopefully Useful for all
    if you want to share do not forget to include its Credit
    Last edited by Qmo; 09-09-2011 at 11:03 AM.





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  2. The Following 35 Users Say Thank You to Qmo For This Useful Post:

    >$°Mr.GoD°$< (09-09-2011),258456 (09-12-2011),arms101 (09-09-2011),atakanist14 (11-25-2013),besimbicer (09-18-2011),Black_Hole (08-04-2014),cseay1 (09-09-2011),FailHacker (09-09-2011),fellipe005 (11-08-2011),GameMaster025 (05-24-2012),gunman353 (09-09-2011),hanamychy (05-18-2012),Hassan (09-09-2011),jablay (09-11-2011),killbyme (09-14-2011),kimos2012 (08-07-2012),Kryo4lex (05-04-2012),m0nt3s3 (10-03-2011),MrJupi (10-08-2011),mwxplayer (03-08-2013),n4n033 (06-22-2013),Nitehawk772 Bkup (10-10-2011),PBO-Beto (09-24-2011),pDevice (07-25-2012),rawr im a tiger (09-14-2012),s3ktonic (12-04-2011),ScrewYouCookie (03-11-2012),shortname (10-21-2011),shryder (02-08-2016),The Decoder (01-12-2013),VeViDo (05-22-2013),WhiteHat PH (05-21-2013),xakerino (10-22-2011),xDaNnx (09-09-2011),zFreeLove (12-08-2015)

  3. #2
    FailHacker's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    444
    Reputation
    8
    Thanks
    49
    Looks..... how you say..... amazing!!!! I didn't get a chance to look at code, but skimmed it quick and it looks wonderful and efficient you're bringing it back to life!
    Legen...wait for it...dary







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

    Qmo (09-09-2011)

  5. #3
    xDaNnx's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    MY GIRLFRIENDS PLACE :P
    Posts
    309
    Reputation
    10
    Thanks
    35
    My Mood
    Angelic
    wow! thanks!

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

    Qmo (09-09-2011)

  7. #4
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,765
    Reputation
    495
    Thanks
    2,094
    My Mood
    Dead
    Great Work Homie.

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

    Qmo (09-09-2011)

  9. #5
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,845
    My Mood
    Relaxed
    I will try my best for this section





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  10. The Following 2 Users Say Thank You to Qmo For This Useful Post:

    mwxplayer (04-02-2013),UndetectedX (05-27-2012)

  11. #6
    denyeko's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    pakistaji
    Posts
    23
    Reputation
    10
    Thanks
    5
    My Mood
    Aggressive
    is it work without player stride?? i dont see any player stride there..

  12. #7
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,845
    My Mood
    Relaxed
    Quote Originally Posted by denyeko View Post
    is it work without player stride?? i dont see any player stride there..
    like I said .... if you want this hack to work,
    Then you have to edit again and one condition: Use your creativity





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  13. #8
    >$°Mr.GoD°$<'s Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    1
    What programs are used to create ??

  14. #9
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,845
    My Mood
    Relaxed

    Arrow

    [COLOR="Black"]
    Quote Originally Posted by >$°Mr.GoD°$< View Post
    What programs are used to create ??
    MVS C++2010 and Microsoft DirectX 9.0 SDK (Summer 2004)
    Last edited by Qmo; 09-09-2011 at 12:49 PM.





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  15. #10
    cseay1's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    north carolina
    Posts
    361
    Reputation
    24
    Thanks
    103
    My Mood
    Amazed
    thank you !!!

  16. The Following User Says Thank You to cseay1 For This Useful Post:

    Qmo (09-11-2011)

  17. #11
    Terell.'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    JAMAICAA
    Posts
    6,923
    Reputation
    273
    Thanks
    1,163
    My Mood
    Angry
    Good job

    Warrock Minion 8-13-2011 - N/A
    A.V.A Minion since 11-1-11 - 11-12-11

  18. The Following User Says Thank You to Terell. For This Useful Post:

    Qmo (09-11-2011)

  19. #12
    arms101's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    0
    My Mood
    Mellow
    i dont know where to start here...haha...mind blowing

  20. #13
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,845
    My Mood
    Relaxed

    Arrow

    Quote Originally Posted by >$°Mr.GoD°$< View Post
    Set as, I go into the game everything works but crasch (( Pb italy.
    Link for download .dll: *********/31675953
    What do ??
    How do you renew after fixed ?
    This is only for D3D MENU Chams, if you want this hack to work,
    Then you have to edit again and one condition: Use your creativity





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  21. #14
    johnpp's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    qweqwe
    Posts
    43
    Reputation
    10
    Thanks
    8
    My Mood
    Tired
    not working on PH Bugtrap T_T

  22. #15
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,845
    My Mood
    Relaxed

    Arrow

    Quote Originally Posted by johnpp View Post
    not working on PH Bugtrap T_T
    of course it does not work, because this should be in the edit again,
    if wanting to work may be here : LINK





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  23. The Following User Says Thank You to Qmo For This Useful Post:

    kimos2012 (08-07-2012)

Page 1 of 8 123 ... LastLast

Similar Threads

  1. [Release] Make a SIMPLE D3D MENU
    By Qmo in forum Piercing Blow Hack Coding/Source Code
    Replies: 45
    Last Post: 10-30-2011, 01:59 PM
  2. [Tutorial] How to make D3D menu.
    By ¢hris. in forum CrossFire Tutorials
    Replies: 24
    Last Post: 08-02-2011, 03:35 AM
  3. [HELP] Can make a d3d menu base with VB?
    By xSniperAngel in forum Visual Basic Programming
    Replies: 1
    Last Post: 02-15-2011, 12:37 PM
  4. How To Make Warrock D3d Menu Hack with all hack functions
    By srinuv in forum Programming Tutorial Requests
    Replies: 5
    Last Post: 09-15-2010, 09:12 AM
  5. Replies: 1
    Last Post: 03-01-2010, 11:11 AM