I know this is old.... but damn... looks cool af and helped me alot! Thank you!
Make a SIMPLE D3D MENU
I have a problem with this menu... I need to Press UP/Down for a longer time (2-3 seconds) for Selector to move why?
EDIT : Fixed the problem..
and little improvements.

EDIT : Fixed the problem..
and little improvements.
Code:
typedef struct{
int index;
char * title;
int *hack;
int hackmaxval;
int hacktype;
DWORD HCOLOR;
}ITEM;
class QmoMenu {
public:
LPDIRECT3DDEVICE9 pDevice;
int hackcount;
int selector;
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();
};
extern QmoMenu dMenu;
extern int x,y,w,h;
//==================================================================
//Menu HACK
extern int hack1;
extern int hack2;
extern int hack3;
extern int hack4;
extern int hack5;
//==================================================================
//.cpp file
#define MenuItems 5
void QmoMenu::BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)
{
if( GetAsyncKeyState( VK_DELETE ) & 1 ) show = ( !show );
if( !show )
{
Draw.D3D_DrawBox( 1 , 34 , w , 20 , BACKCOLOR, BORDERCOLOR, pDevice);
Draw.D3D_DrawText(" IW5M MultiHack 1.5", 1 , 35 , TITLECOL, Draw.D3DFont );
return;
}
Draw.D3D_DrawBox ( x , y , 240 , MenuItems * 20 , D3D_BLACK , D3D_BLACK , pDevice );
Draw.D3D_DrawBorder ( x , y , 240 , MenuItems * 20 , 1 , D3D_GREEN , pDevice );
Draw.D3D_DrawText ( menuname , x + 10 , y + 2 , TITLECOL , Draw.D3DFont );
CreateItem(1,"Aimtype", &hack1 , 3 , 1);
CreateItem(2,"Aimbone", &hack2 , 19 , 2);
CreateItem(3,"Prediction", &hack3);
CreateItem(4,"Knifebot", &hack4);
CreateItem(5,"test ha", &hack5);
RenderMenu();
}
void QmoMenu::RenderMenu()
{
//====================== move able Menu =============================\\
if(GetAsyncKeyState(VK_NUMPAD2)&1)
y += 10;
if(GetAsyncKeyState(VK_NUMPAD8)&1)
y -= 10;
if(GetAsyncKeyState(VK_NUMPAD4)&1)
x -= 10; xFontOffSet -= 10;
if(GetAsyncKeyState(VK_NUMPAD6)&1)
x += 10; xFontOffSet += 10;
//======================================================================\\
if (GetAsyncKeyState( VK_DOWN ) & 0x8000 ) {
selector++;
Sleep(150);
}
if( GetAsyncKeyState ( VK_UP ) & 0x8000 && selector > 1 ) {
selector--;
Sleep(150);
}
if (GetAsyncKeyState ( VK_RIGHT ) & 1 )
{
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 ) & 1 ){
for( int i = 0; i < ( hackcount + 1); i++ ) {
if(selector == HACKITEM[i].index && *HACKITEM[i].hack > 0 ) {
*HACKITEM[i].hack -= 1;
// Sleep(200);
}
}
}
for(int i=0;i < (hackcount+1);i++){
if(selector == HACKITEM[i].index)
HACKITEM[i].HCOLOR = D3D_LIME;
else
HACKITEM[i].HCOLOR = D3D_SKYBLUE;
}
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
Draw.D3D_DrawText("On", xFontOffSet+150 + x, HACKITEM[i].index * 15 + y, D3D_GREEN , Draw.D3DFont );
else
Draw.D3D_DrawText("Off", xFontOffSet+150 + x, HACKITEM[i].index * 15 + y, D3D_WHITE , Draw.D3DFont );
}
if ( HACKITEM[i].hacktype == 1 ){
switch (*HACKITEM[i].hack )
{
case 0 :
Draw.D3D_DrawText ( "Normal" , xFontOffSet + 150 + x, HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
Aimbot.Aimtype = 0;
break;
case 1 :
Draw.D3D_DrawText ( "ShortGun" , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_LIME , Draw.D3DFont );
Aimbot.Aimtype = 1;
break;
case 2 :
Draw.D3D_DrawText ( "Closest" , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_MAROON , Draw.D3DFont );
break;
case 3:
Draw.D3D_DrawText ( "Farest" , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_BROWN , Draw.D3DFont );
break;
}
}
if ( HACKITEM[i].hacktype == 2 ){
if ( *HACKITEM[i].hack == 0 )
Draw.D3D_DrawText ( "BestBone" , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_YELLOW , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 1 )
Draw.D3D_DrawText ( Bones[0] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 2 )
Draw.D3D_DrawText ( Bones[1] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 3 )
Draw.D3D_DrawText ( Bones[2] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 4 )
Draw.D3D_DrawText ( Bones[3] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 5 )
Draw.D3D_DrawText ( Bones[4] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 6 )
Draw.D3D_DrawText ( Bones[5] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 7 )
Draw.D3D_DrawText ( Bones[6] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 8 )
Draw.D3D_DrawText ( Bones[7] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 9 )
Draw.D3D_DrawText ( Bones[8] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 10 )
Draw.D3D_DrawText ( Bones[9] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 11 )
Draw.D3D_DrawText ( Bones[10] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 12 )
Draw.D3D_DrawText ( Bones[11] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 13 )
Draw.D3D_DrawText ( Bones[12] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 14 )
Draw.D3D_DrawText ( Bones[13] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 15 )
Draw.D3D_DrawText ( Bones[14] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 16 )
Draw.D3D_DrawText ( Bones[15] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 17 )
Draw.D3D_DrawText ( Bones[16] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 18 )
Draw.D3D_DrawText ( Bones[17] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 19 )
Draw.D3D_DrawText ( Bones[18] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
else if ( *HACKITEM[i].hack == 20 )
Draw.D3D_DrawText ( Bones[19] , xFontOffSet + 150 + x , HACKITEM[i].index * 15 + y , D3D_WHITE , Draw.D3DFont );
}
}
if(selector < 1 )
selector = 1;
if(selector > hackcount)
selector = 1;
hackcount = 0;
}
//==================================================================
//Menu HACK
int hack1 = 0;
int hack2 = 0;
int hack3 = 0;
int hack4 = 0;
int hack5 = 0;
//==================================================================
int x = 1024, y = 14, w = 180 , h = 150;

very perfect
good job man
good job man
I Love You to hahahaha
Goodjob but its better in you sprintf_s the text instead of using 'on' & 'off'.
If you do it like this you can actually change the on - off naming to whatever you like.
Other then that, good job!
If you do it like this you can actually change the on - off naming to whatever you like.
Other then that, good job!

Good job mate, thanks for this! ^^
thank's much for this now i can make own D3D Base...
great nice ..... thank's
Thank You Qmoainx
---------- Post added at 10:02 AM ---------- Previous post was at 08:14 AM ----------
but this error get to me 1>D3dbase.cpp(1): fatal error C1083: Cannot open precompiled header file: 'Debug\Allah akbr.pch': No such file or directory
---------- Post added at 10:02 AM ---------- Previous post was at 08:14 AM ----------
but this error get to me 1>D3dbase.cpp(1): fatal error C1083: Cannot open precompiled header file: 'Debug\Allah akbr.pch': No such file or directory
1.You should have a basic C++
2. Here fro Include your project and set to release
http://www.mpgh.net/forum/106-direct...ml#post5147710
2. Here fro Include your project and set to release
http://www.mpgh.net/forum/106-direct...ml#post5147710
@KOoOMI delete debug/release then build again.... ^^
hey ... is there anything you want to tell me how to find games for the base hook D3D menu
Similar Threads
Piercing Blow Hack Coding/Source CodeMake a SIMPLE D3D MENU
45 Programming Tutorial RequestsHow To Make Warrock D3d Menu Hack with all hack functions 5 CrossFire TutorialsHow to make D3D menu.
24 Visual Basic Programming[HELP] Can make a d3d menu base with VB?
1 C++/C Programmingreques someone make tutorial about making d3d menu for soldier frontGA 1

