Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Direct3D > D3D Tutorials and Source

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

Create Advanced Menu
Old 03-09-2010, 12:11 AM   #1
Supreme G0d

d1gitalSLR's Avatar

Join Date: Sep 2008
Posts: 379
Reputation: 3457
Rep Power: 83
d1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating community
Points: 6,148, Level: 8
Points: 6,148, Level: 8 Points: 6,148, Level: 8 Points: 6,148, Level: 8
Activity: 3.5%
Activity: 3.5% Activity: 3.5% Activity: 3.5%
Last Achievements
Create Advanced Menu

Hello all, First before I start I would like to thank these people.

  • SEGnosis - Most Help with D3DGUI
  • SilentK - Started me on D3D
  • Fatboy88 - Great help
  • r4z8r - Misc C++ Help
  • Ultimate-Tester - Good friend and C++ Helper
  • kidebr - Text Printing
  • stefan - Sprite Source
  • Eclipse - Saved me a TON of time by making that D3D9 Test Enviroment, You should download his test app until you get your menu just the way you want it before injecting into a game!
Sorry if I forgot you, I did not plan on making this tutorial but I went through many revisions to get this working very fast. This rendering method only drops the FPS 1-2 Frames! Thats alot better than when I first started and my FPS would drop 60+ frames.

First you will need Design.h, This is the main bulk of the Rendering Class. You can customize to your liking. It is very easy to pick up and use right away.

PHP Code:
#define flt (float)
float centerScreenXcenterScreenY;
float menuXmenuYmenuTextXmenuTextY;
tagPOINT Pos;

charFeatures[] = { "Hack 1""Hack 2""Hack 3""Hack 4" };
bool _Features[4]; // Create Bools to toggle for the hacks

void DrawTexture(int xint yLPDIRECT3DTEXTURE9 dTexture)
{
    
SptMenu->Draw(dTexture,NULL,NULL,&D3DXVECTOR3(flt x,flt y0.0f), 0xFFFFFFFF);
    return;
}

void PrintText(LPD3DXFONT Fontlong xlong yD3DCOLOR fontColorchar *text, ...)

    
RECT rct;   
    
rct.left     1;   
    
rct.right    1;   
    
rct.top      ;   
    
rct.bottom   1

    if(!
text) { return; }
    
va_list va_alist;
    
char logbuf[256] = {0};
    
va_start (va_alisttext);
    
_vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), textva_alist);
    
va_end (va_alist);
    
RECT FontRect = { xyx};
    
Font->DrawText(SptMenulogbuf, -1, &rctDT_NOCLIPfontColor); 
}

void GetCenterScreen(LPDIRECT3DDEVICE9 pDevice)
{
    
pDevice->GetViewport(&pViewPort);
    
centerScreenX = ( float )pViewPort.Width 2;//Horizontal Position
    
centerScreenY = ( float )pViewPort.Height 2;//Vertical Position
    
menuX = (centerScreenX 110);
    
menuY = (centerScreenY 225);
}

void DrawMouse(LPDIRECT3DDEVICE9 pDevice)
{
    
GetCursorPos(&Pos);
    if (
bMenu)
    {
        
DrawTexture(Pos.xPos.yTexCursor);
        if (
GetAsyncKeyState(VK_LBUTTON) & 0x8000//0x8000
        
{
            if ((
Pos.menuX) && (Pos.menuX+138) && (Pos.menuY) && (Pos.menuY+20))
            {
                
menuX Pos.68// Move the Menu/ Adjust this to the center of your moveable part of the menu
                
menuY Pos.10;
            }
            
            for (
int i 04i++) // Change this to the amount of features you have
            
{
                if ((
Pos.menuX 5) && (Pos.menuX+125) && (Pos.menuY+33 + (19 i)) && (Pos.< (menuY+50 + (19 i))))
                {
                    
_Features[i] = !_Features[i];
                    
Sleep(100); // So you don't get Rapid-Fire Toggling
                
}
            }
        }
    }

In your menu Class you will need a Image for your base, this has to be a multiple of 8. For my bigger menus I use 512x512 with a transparent background, Smaller menu's I use 256x256.

You will also need to adjust the Cursor position when you want to move the menu. I have tried multiple trial and errors and it seems like somewhere in the middle (While you are holding the mouse) seems to be the place to put it.

There is also another header file we must create. My image header is called Images.h for obvious reasons, This is just so we can keep the actual textures in memory instead of packing files with your .dll hack.

PHP Code:
BYTE _Menu[] = { 0x00 }; // You will need to convert your file to byte array yourself
BYTE _Active[] = { 0x00 };
BYTE _Norm[] = { 0x00 };
BYTE _Cursor[] = { 0x00 }; 
I have made a program that does this for you in C# <Insert UC-Downloads Link> It will open your file then output the byte array into a text document called output.txt. Very Simple to use

In your "Main.h" or in my case Loads.h you will need to have your hooking stuff (Whatever that may be, this is not a DX Hooking tutorial but a graphics tutorial)
PHP Code:
bool bMenu false// Is Menu Shown?
bool runOnce true// Needed for a few things Only well Run Once
LPD3DXFONT        pFont// Font Object
D3DVIEWPORT9    pViewPort// Viewport so we can align everything up

LPDIRECT3DTEXTURE9 TexMenuTexCursorTexNormTexActive// Base part of menu, The Cursor, (Norm/Active) buttons
LPD3DXSPRITE SptMenu// Sprite for rendering
// Text Colors
#define tGreen  D3DCOLOR_ARGB( 255,   0, 255,   0 )
#define tRed    D3DCOLOR_ARGB( 255, 255, 0, 0 )
#define tBlue    D3DCOLOR_ARGB( 255,    0,    0,    255)
#define tYellow    D3DCOLOR_ARGB( 255,    255, 255, 0)
#define tBlack    D3DCOLOR_ARGB( 255, 0, 0, 0)
#define tWhite    D3DCOLOR_ARGB( 255, 255, 255, 255)
#define tOrange D3DCOLOR_ARGB( 255, 250, 191, 143) 
Ok, now to move on to the main part, In your main.cpp (or whatever it is called) you will need to put a few things.

PHP Code:
#include "Design.h"
#include "Loads.h"
#include "Images.h"
HRESULT WINAPI hkEndScene(LPDIRECT3DDEVICE9 pDevice)
{    
    if (
runOnce)
    {
        
runOnce false;
        
GetCenterScreen(pDevice); // Only needs to be ran once
    
}
    if(
TexMenu == NULL)D3DXCreateTextureFromFileInMemory(pDevice, &_Menusizeof(_Menu), &TexMenu);// If NULL keep trying to create the texture
    
if(TexCursor == NULL)D3DXCreateTextureFromFileInMemory(pDevice, &_Cursorsizeof(_Cursor), &TexCursor);
    if(
TexNorm == NULL)D3DXCreateTextureFromFileInMemory(pDevice, &_Normsizeof(_Norm), &TexNorm);
    if(
TexActive == NULL)D3DXCreateTextureFromFileInMemory(pDevice, &_Activesizeof(_Active), &TexActive);
    if(
SptMenu == NULL)D3DXCreateSprite(pDevice, &SptMenu);
    if(
pFont == NULLD3DXCreateFont(pDevice100FW_THIN10DEFAULT_CHARSETOUT_DEFAULT_PRECISANTIALIASED_QUALITYDEFAULT_PITCH FF_DONTCARE"Lucida Console", &pFont); // I like this font setting, You may adjust to your likings

    
SptMenu->Begin(D3DXSPRITE_ALPHABLEND); // READ TUTORIAL TO SEE WHY I DO THIS

    
menuTextX = (menuX 14); // This is for Text Alignment to the menu, needs to be constantly updated just incase you move the menu
    
menuTextY = (menuY 38);

    if (
bMenu)
    {
        
DrawTexture(menuXmenuYTexMenu); // If menu is shown draw the menu, duh!
        
for (int i 04i++) // Render the Menu Options
        
{
            if (
_Features[i]) // You can make a function like DrawMenuOption(bool enaled) or you can do this.
                
DrawTexture(menuX 5, (menuY+33) + (19 i), TexActive); // You will have to self, align this for yourself
            
else
                
DrawTexture(menuX 5, (menuY+33) + (19 i), TexNorm);

            
PrintText(pFontmenuTextXmenuTextY + (19*i), tBlackFeatures[i]); // Prints text over the buttons so you know what you are clicking.
        
}
    }
    
DrawMouse(pDevice); // Draws the mouse *facepalm*
    
SptMenu->End(); // End the Sprite
    
return oEndScene(pDevice); // Ends our DX EndScene hook
}

DWORD WINAPI MyInput(LPVOID)
{
    while (
1)
    {
        if(
GetAsyncKeyState(VK_F2)&0x8000)
            
bMenu = !bMenu;
        
Sleep(200);
    }
    return 
0;
}
BOOL WINAPI DllMain(HMODULE hModuleDWORD dwReasonLPVOID lpvReserved)
{
    if(
dwReason == DLL_PROCESS_ATTACH)
    {
        
CreateThread(0,0,MyThread,0,0,0); // Take Input
        
CreateThread(0,0,MyInput,0,0,0); // Actually do the hook
    
}

    return 
TRUE;

The reason I have the sprite Begin, Draw my stuff, then End is because when I had the Sprite Begin/End in the actual drawing functions some times the Sprite would not be finish Ending/Not Begun. Like in the call stack it would look like Hack.Sprite->Begin, Hack.Sprite->Begin which causes everyone headache and frustration. And instead of not drawing some things if its not initialized/begun/ended I just had it start, Draw everything, End it. Simple eh? This is just what I found works, Pro's feel free to correct that if you must.

Image:


Download
UC-Downloads - Multiplayer Game Hacking and Cheat Downloads - Advanced Menu Tutorial Files

This contains:
Visual Studio 2008 Project
Built DLL
Winject
Test Enviroment
Base Menu Image

Grab and give credit to SEGnosis for his awesome images. (Note they are not in correct format, most will need to be converted to 32x32, 125x125, 256x256 or 512x512)
http://www.uc-forum.com/forum/d3d-pr...ow-design.html
__________________
I'm no pro hacker. But when I say stuff I pretty much know what I am talking about. So just chill. If you need some help just ask.

-Unknown-Cheats-
d1gitalSLR is online now

Reply With Quote


Old 03-09-2010, 12:18 AM   #2
Junior Member

Stealth--'s Avatar

Join Date: Nov 2009
Posts: 48
Reputation: 869
Rep Power: 36
Stealth-- is a pure evil cheating machine - envied by mostStealth-- is a pure evil cheating machine - envied by mostStealth-- is a pure evil cheating machine - envied by mostStealth-- is a pure evil cheating machine - envied by mostStealth-- is a pure evil cheating machine - envied by mostStealth-- is a pure evil cheating machine - envied by mostStealth-- is a pure evil cheating machine - envied by most
Points: 845, Level: 1
Points: 845, Level: 1 Points: 845, Level: 1 Points: 845, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Very nice job +rep
Stealth-- is offline

Reply With Quote

Old 03-09-2010, 12:39 AM   #3
Retired Admin

learn_more's Avatar

Join Date: Sep 2006
Posts: 5,249
Reputation: 93628
Rep Power: 1106
learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
sieg heil Nazi
Points: 70,490, Level: 39
Points: 70,490, Level: 39 Points: 70,490, Level: 39 Points: 70,490, Level: 39
Activity: 24.7%
Activity: 24.7% Activity: 24.7% Activity: 24.7%
Last Achievements
Award-Showcase
thanks for the time you took writing up this tutorial

if you don't mind, here is some criticism that is (hopefully) constructive (and reflects my personal opinion):





i also cleaned up the zip a bit, removing the .ncb file and winject which is already in ucdownloads a few times (got filesize down from 4.5 mb to 122 kb)
winject download link: http://www.ucdownloads.com/downloads...do=file&id=578

files approved, binary scanlogs:


'd3dtest.exe' scan result: 1/42 (2.39%)
Code:
Antivirus          Version        Last Update  Result
a-squared          4.5.0.50       2010.03.07   -
AhnLab-V3          5.0.0.2        2010.03.07   -
AntiVir            8.2.1.180      2010.03.05   -
Antiy-AVL          2.0.3.7        2010.03.05   -
Authentium         5.2.0.5        2010.03.06   -
Avast              4.8.1351.0     2010.03.07   -
Avast5             5.0.332.0      2010.03.07   -
AVG                9.0.0.787      2010.03.07   -
BitDefender        7.2            2010.03.07   -
CAT-QuickHeal      10.00          2010.03.06   -
ClamAV             0.96.0.0-git   2010.03.06   -
Comodo             4091           2010.02.28   -
DrWeb              5.0.1.12222    2010.03.07   -
eSafe              7.0.17.0       2010.03.04   -
eTrust-Vet         35.2.7342      2010.03.05   -
F-Prot             4.5.1.85       2010.03.06   -
F-Secure           9.0.15370.0    2010.03.07   -
Fortinet           4.0.14.0       2010.03.07   -
GData              19             2010.03.07   -
Ikarus             T3.1.1.80.0    2010.03.07   -
Jiangmin           13.0.900       2010.03.07   -
K7AntiVirus        7.10.990       2010.03.04   -
Kaspersky          7.0.0.125      2010.03.07   -
McAfee             5912           2010.03.06   -
McAfee+Artemis     5912           2010.03.06   -
McAfee-GW-Edition  6.8.5          2010.03.07   -
Microsoft          1.5502         2010.03.07   -
NOD32              4922           2010.03.07   -
Norman             6.04.08        2010.03.07   -
nProtect           2009.1.8.0     2010.03.07   -
Panda              10.0.2.2       2010.03.07   -
PCTools            7.0.3.5        2010.03.04   -
Prevx              3.0            2010.03.09   -
Rising             22.37.06.04    2010.03.07   -
Sophos             4.51.0         2010.03.07   -
Sunbelt            5780           2010.03.07   -
Symantec           20091.2.0.41   2010.03.07   Suspicious.Insight
TheHacker          6.5.1.9.223    2010.03.07   -
TrendMicro         9.120.0.1004   2010.03.07   -
VBA32              3.12.12.2      2010.03.05   -
ViRobot            2010.3.5.2214  2010.03.05   -
VirusBuster        5.0.27.0       2010.03.06   -
MD5...: c23dccd63898c75f01c65d9129510a81
SHA1..: acc310dce3377ec0474a09eb16a5afec82411662
SHA256: 0dbfbdb604860d821308a7c9931afb6fe1be61f896f2f4a13a626d636a1a73fe

Original scan result




'AdvancedMenuTutorial.dll' scan result: 1/42 (2.39%)
Code:
Antivirus          Version        Last Update  Result
a-squared          4.5.0.50       2010.03.08   -
AhnLab-V3          5.0.0.2        2010.03.08   -
AntiVir            8.2.1.180      2010.03.08   -
Antiy-AVL          2.0.3.7        2010.03.08   -
Authentium         5.2.0.5        2010.03.08   -
Avast              4.8.1351.0     2010.03.07   -
Avast5             5.0.332.0      2010.03.07   -
AVG                9.0.0.787      2010.03.08   -
BitDefender        7.2            2010.03.09   -
CAT-QuickHeal      10.00          2010.03.08   -
ClamAV             0.96.0.0-git   2010.03.08   -
Comodo             4091           2010.02.28   -
DrWeb              5.0.1.12222    2010.03.08   -
eSafe              7.0.17.0       2010.03.08   -
eTrust-Vet         35.2.7345      2010.03.08   -
F-Prot             4.5.1.85       2010.03.08   -
F-Secure           9.0.15370.0    2010.03.09   -
Fortinet           4.0.14.0       2010.03.07   -
GData              19             2010.03.09   -
Ikarus             T3.1.1.80.0    2010.03.08   -
Jiangmin           13.0.900       2010.03.08   -
K7AntiVirus        7.10.992       2010.03.08   -
Kaspersky          7.0.0.125      2010.03.08   -
McAfee             5914           2010.03.08   -
McAfee+Artemis     5914           2010.03.08   -
McAfee-GW-Edition  6.8.5          2010.03.08   -
Microsoft          1.5502         2010.03.08   -
NOD32              4926           2010.03.08   -
Norman             6.04.08        2010.03.08   -
nProtect           2009.1.8.0     2010.03.08   -
Panda              10.0.2.2       2010.03.08   -
PCTools            7.0.3.5        2010.03.08   -
Prevx              3.0            2010.03.09   -
Rising             22.38.00.04    2010.03.08   -
Sophos             4.51.0         2010.03.09   -
Sunbelt            5795           2010.03.09   -
Symantec           20091.2.0.41   2010.03.09   Suspicious.Insight
TheHacker          6.5.2.0.225    2010.03.08   -
TrendMicro         9.120.0.1004   2010.03.08   -
VBA32              3.12.12.2      2010.03.05   -
ViRobot            2010.3.8.2216  2010.03.08   -
VirusBuster        5.0.27.0       2010.03.08   -
MD5...: 947a6f3ba683ec6f48d68c33e168996c
SHA1..: 4a970d1ead7f2cbe88e30eb22a360737848694f2
SHA256: 990cb234496335bd4c8a1de956ade99e950792edd14c095f62492104c87f49a7

Original scan result



'FileToByteArray.exe' scan result: 1/42 (2.39%)
Code:
Antivirus          Version        Last Update  Result
a-squared          4.5.0.50       2010.03.08   -
AhnLab-V3          5.0.0.2        2010.03.08   -
AntiVir            8.2.1.180      2010.03.08   -
Antiy-AVL          2.0.3.7        2010.03.08   -
Authentium         5.2.0.5        2010.03.08   -
Avast              4.8.1351.0     2010.03.07   -
Avast5             5.0.332.0      2010.03.07   -
AVG                9.0.0.787      2010.03.08   -
BitDefender        7.2            2010.03.09   -
CAT-QuickHeal      10.00          2010.03.08   -
ClamAV             0.96.0.0-git   2010.03.08   -
Comodo             4091           2010.02.28   -
DrWeb              5.0.1.12222    2010.03.08   -
eSafe              7.0.17.0       2010.03.08   -
eTrust-Vet         35.2.7345      2010.03.08   -
F-Prot             4.5.1.85       2010.03.08   -
F-Secure           9.0.15370.0    2010.03.09   -
Fortinet           4.0.14.0       2010.03.07   -
GData              19             2010.03.09   -
Ikarus             T3.1.1.80.0    2010.03.08   -
Jiangmin           13.0.900       2010.03.08   -
K7AntiVirus        7.10.992       2010.03.08   -
Kaspersky          7.0.0.125      2010.03.08   -
McAfee             5914           2010.03.08   -
McAfee+Artemis     5914           2010.03.08   -
McAfee-GW-Edition  6.8.5          2010.03.08   -
Microsoft          1.5502         2010.03.08   -
NOD32              4926           2010.03.08   -
Norman             6.04.08        2010.03.08   -
nProtect           2009.1.8.0     2010.03.08   -
Panda              10.0.2.2       2010.03.08   -
PCTools            7.0.3.5        2010.03.08   -
Prevx              3.0            2010.03.09   -
Rising             22.38.00.04    2010.03.08   -
Sophos             4.51.0         2010.03.09   -
Sunbelt            5795           2010.03.09   -
Symantec           20091.2.0.41   2010.03.09   Suspicious.Insight
TheHacker          6.5.2.0.225    2010.03.08   -
TrendMicro         9.120.0.1004   2010.03.08   -
VBA32              3.12.12.2      2010.03.05   -
ViRobot            2010.3.8.2216  2010.03.08   -
VirusBuster        5.0.27.0       2010.03.08   -
MD5...: 482b5c1fd02f58fcab00c3f534e9859e
SHA1..: bcd827c44b630a6d3a3da1eee24190d127f5d036
SHA256: a32bddef36ea5d1bef915d15f5836e298085a2b3b12c7c41ed8502ae16793db6

Original scan result
__________________

Last edited by learn_more; 03-09-2010 at 12:54 AM.
learn_more is offline

Reply With Quote

Old 03-09-2010, 01:19 AM   #4
Supreme G0d

d1gitalSLR's Avatar

Threadstarter
Join Date: Sep 2008
Posts: 379
Reputation: 3457
Rep Power: 83
d1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating community
Points: 6,148, Level: 8
Points: 6,148, Level: 8 Points: 6,148, Level: 8 Points: 6,148, Level: 8
Activity: 3.5%
Activity: 3.5% Activity: 3.5% Activity: 3.5%
Last Achievements
Thanks learn_more, Will take all of that into account. I took this source from a hack that I was making so I might have forgotten to remove a few comments/change them.

I still am learning, thanks for the info!
__________________
I'm no pro hacker. But when I say stuff I pretty much know what I am talking about. So just chill. If you need some help just ask.

-Unknown-Cheats-
d1gitalSLR is online now

Reply With Quote

Old 03-09-2010, 01:29 AM   #5
SEGnosis
Guest

Posts: n/a
+rep,

G' bye

Reply With Quote

Old 03-09-2010, 01:46 AM   #6


isander11's Avatar

Join Date: Jan 2010
Posts: 83
Reputation: 149
Rep Power: 0
isander11 is in the shadow of all hacking legendsisander11 is in the shadow of all hacking legends
Best menu I've ever seen. Well deserved +rep.
isander11 is offline

Reply With Quote

Old 03-12-2010, 11:34 AM   #7
Level 3

botex's Avatar

Join Date: Apr 2009
Posts: 1,605
Reputation: 27376
Rep Power: 340
botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!botex has reputation that takes up 2GB of server space!
Well done.Defenetly best look out there
botex is offline

Reply With Quote

Old 03-12-2010, 12:49 PM   #8
n00bie

EvilNess's Avatar

Join Date: Aug 2009
Posts: 22
Reputation: -20
Rep Power: 0
EvilNess is becoming a waste of our time
nice+rep
EvilNess is offline

Reply With Quote

Old 03-12-2010, 01:12 PM   #9
Donator

Blubsi's Avatar

Join Date: May 2009
Posts: 535
Reputation: 10144
Rep Power: 144
Blubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server spaceBlubsi 's rep takes up 1 gig of server space
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (1)
Points: 9,067, Level: 11
Points: 9,067, Level: 11 Points: 9,067, Level: 11 Points: 9,067, Level: 11
Activity: 4.7%
Activity: 4.7% Activity: 4.7% Activity: 4.7%
Last Achievements
forum fills with nice tuts
Blubsi is online now

Reply With Quote

Old 03-18-2010, 10:42 PM   #10
1337 H4x0!2

NaTeFoRsUrE's Avatar

Join Date: Dec 2009
Posts: 121
Reputation: 1196
Rep Power: 39
NaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the world
Is there anyway I can change the images, and how can I add my hacks into the code?
__________________

Last edited by NaTeFoRsUrE; 03-18-2010 at 10:51 PM.
NaTeFoRsUrE is offline

Reply With Quote

Old 03-18-2010, 11:36 PM   #11
Supreme G0d

d1gitalSLR's Avatar

Threadstarter
Join Date: Sep 2008
Posts: 379
Reputation: 3457
Rep Power: 83
d1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating community
Points: 6,148, Level: 8
Points: 6,148, Level: 8 Points: 6,148, Level: 8 Points: 6,148, Level: 8
Activity: 3.5%
Activity: 3.5% Activity: 3.5% Activity: 3.5%
Last Achievements
Once you create your images in photoshop of correct size (32x32, 125x125, etc) Just use the tool I made in there. It will convert your images into a byte array that you can load from memory.

Then just create another thread (if cMenu.Hacks[1].Enabled) { Hax(); }
__________________
I'm no pro hacker. But when I say stuff I pretty much know what I am talking about. So just chill. If you need some help just ask.

-Unknown-Cheats-
d1gitalSLR is online now

Reply With Quote

Old 03-19-2010, 05:50 PM   #12
1337 H4x0!2

NaTeFoRsUrE's Avatar

Join Date: Dec 2009
Posts: 121
Reputation: 1196
Rep Power: 39
NaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the worldNaTeFoRsUrE -- This man endangers the world
Quote:
Originally Posted by d1gitalSLR View Post
Once you create your images in photoshop of correct size (32x32, 125x125, etc) Just use the tool I made in there. It will convert your images into a byte array that you can load from memory.

Then just create another thread (if cMenu.Hacks[1].Enabled) { Hax(); }
Awesome man! +Rep for awesome menu

EDIT: the (if cMenu.Hacks[1].Enabled) { Hax(); } doesnt work.... cMen, .Hack and, .Enabled is not declerad.. How can i fix this?

Im using this:
PHP Code:
if (cMenu.Hack[1].Enabled)
    {
        
//Hack
    

__________________

Last edited by NaTeFoRsUrE; 03-19-2010 at 06:17 PM.
NaTeFoRsUrE is offline

Reply With Quote

Old 03-19-2010, 08:56 PM   #13
Supreme G0d

d1gitalSLR's Avatar

Threadstarter
Join Date: Sep 2008
Posts: 379
Reputation: 3457
Rep Power: 83
d1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating community
Points: 6,148, Level: 8
Points: 6,148, Level: 8 Points: 6,148, Level: 8 Points: 6,148, Level: 8
Activity: 3.5%
Activity: 3.5% Activity: 3.5% Activity: 3.5%
Last Achievements
Oh, It was not exactly copy and paste. I was thinking that you used learn_mores approach of Structs. Just do if (_Features[number]) { hax(); }
__________________
I'm no pro hacker. But when I say stuff I pretty much know what I am talking about. So just chill. If you need some help just ask.

-Unknown-Cheats-
d1gitalSLR is online now

Reply With Quote

Old 03-31-2010, 01:53 PM   #14
Junior Member

Gioshua's Avatar

Join Date: Feb 2009
Posts: 46
Reputation: -485
Rep Power: 0
Gioshua is stupid.Gioshua is stupid.Gioshua is stupid.Gioshua is stupid.Gioshua is stupid.
Points: 1,067, Level: 2
Points: 1,067, Level: 2 Points: 1,067, Level: 2 Points: 1,067, Level: 2
Activity: 1.2%
Activity: 1.2% Activity: 1.2% Activity: 1.2%
Last Achievements
why if i use other image doesnt work?
Gioshua is online now

Reply With Quote

Old 03-31-2010, 02:38 PM   #15
Retired Admin

learn_more's Avatar

Join Date: Sep 2006
Posts: 5,249
Reputation: 93628
Rep Power: 1106
learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
sieg heil Nazi
Points: 70,490, Level: 39
Points: 70,490, Level: 39 Points: 70,490, Level: 39 Points: 70,490, Level: 39
Activity: 24.7%
Activity: 24.7% Activity: 24.7% Activity: 24.7%
Last Achievements
Award-Showcase
Quote:
Originally Posted by Gioshua View Post
why if i use other image doesnt work?
ofcourse the images are the correct dimensions and type?
__________________
learn_more is offline

Reply With Quote

Old 03-31-2010, 05:37 PM   #16
Level 3

silverfish's Avatar

Join Date: Dec 2006
Posts: 436
Reputation: 8917
Rep Power: 160
silverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATSsilverfish DEFINES UNKNOWNCHEATS
Points: 9,557, Level: 11
Points: 9,557, Level: 11 Points: 9,557, Level: 11 Points: 9,557, Level: 11
Activity: 4.2%
Activity: 4.2% Activity: 4.2% Activity: 4.2%
Last Achievements
Just a minor add to what learn_more mentioned about menu enumeration....

Code:
struct var_menu {
    char* text;
    bool state;
};

var_menu Features[] = {
    //descript.    initial value
    {"Hack 1",    false},
    {"Hack 2",    false},
    {"Hack 3",    false},
    {"Hack 4",    false}
};

#define NUM_FEATURES    ARRAYSIZE(Features)
I let my enum do it for me:

Code:
static enum menu_items 
{
	PLAYERESP		= 1,
	HEALTHESP		= 2,
	RADAR			= 3,
	SOUNDS			= 4,
	DEBUGINFO		= 5,
	AUTOAIM			= 6,
	MAX_ITEMS		// as long as this is last in the list it will give me the value I need
};
usage:

Code:
int menuSize = MAX_ITEMS-1;
Mine is just another way...but his is more elegant.

Last edited by silverfish; 03-31-2010 at 05:39 PM.
silverfish is online now

Reply With Quote

Old 03-31-2010, 05:53 PM   #17
Retired Admin

learn_more's Avatar

Join Date: Sep 2006
Posts: 5,249
Reputation: 93628
Rep Power: 1106
learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
sieg heil Nazi
Points: 70,490, Level: 39
Points: 70,490, Level: 39 Points: 70,490, Level: 39 Points: 70,490, Level: 39
Activity: 24.7%
Activity: 24.7% Activity: 24.7% Activity: 24.7%
Last Achievements
Award-Showcase
@silverfish:
since its an enum u dont have to assign all numbers, although default it starts at 0, so when u want it to start at 1, giving only the first index is enough

Code:
static enum menu_items 
{
    PLAYERESP        = 1,
    HEALTHESP,
    RADAR,
    SOUNDS,
    DEBUGINFO,
    AUTOAIM,
    MAX_ITEMS        // as long as this is last in the list it will give me the value I need
};
__________________
learn_more is offline

Reply With Quote

Old 03-31-2010, 06:29 PM   #18
Junior Member

Gioshua's Avatar

Join Date: Feb 2009
Posts: 46
Reputation: -485
Rep Power: 0
Gioshua is stupid.Gioshua is stupid.Gioshua is stupid.Gioshua is stupid.Gioshua is stupid.
Points: 1,067, Level: 2
Points: 1,067, Level: 2 Points: 1,067, Level: 2 Points: 1,067, Level: 2
Activity: 1.2%
Activity: 1.2% Activity: 1.2% Activity: 1.2%
Last Achievements
i use a multiple of 8 right?
Gioshua is online now

Reply With Quote

Old 03-31-2010, 11:11 PM   #19
Supreme G0d

d1gitalSLR's Avatar

Threadstarter
Join Date: Sep 2008
Posts: 379
Reputation: 3457
Rep Power: 83
d1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating communityd1gitalSLR is a legend in the cheating community
Points: 6,148, Level: 8
Points: 6,148, Level: 8 Points: 6,148, Level: 8 Points: 6,148, Level: 8
Activity: 3.5%
Activity: 3.5% Activity: 3.5% Activity: 3.5%
Last Achievements
For the images yes. 16x16, 32x32, 64x64, 128x128, 256x256, 512x512 is what I use normally.
__________________
I'm no pro hacker. But when I say stuff I pretty much know what I am talking about. So just chill. If you need some help just ask.

-Unknown-Cheats-
d1gitalSLR is online now

Reply With Quote

Old 04-02-2010, 10:25 PM   #20
Junior Member

-Sinner-'s Avatar

Join Date: Jan 2010
Posts: 50
Reputation: -434
Rep Power: 0
-Sinner- is stupid.-Sinner- is stupid.-Sinner- is stupid.-Sinner- is stupid.-Sinner- is stupid.
I get an error

Code:
1>c:\users\steve\desktop\anything to do with d3d menus\advanced menu tutorial\visual studio 2008 project\advancedmenututorial\advancedmenututorial\Loads.h(9) : fatal error C1083: Cannot open include file: 'detours.h': No such file or directory
I wrote my detours.

Its there. LOL
-Sinner- is offline

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
advanced, create, menu
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 11:34 AM.