(REQUEST)Drop down menu source code?

Posts 1–14 of 14 · Page 1 of 1
(REQUEST)Drop down menu source code?
I need a source code that lets me put up a menu in my hack because I want a INSERT key hack not a number pad hack. Number pad hacks always crash on me is the reason why. Please PM me the code so I dont lose it
Ehhm show that you can detour then some one might help
I just need to know how to make a drop down menu.
a D3D menu is not very complicated to make, what your'll have to work on is the CA bypass (Ca Detour)...but I suppose you can just update gellins.
Not that I would feel insulted..but who are you talking about?
First : Learn D3D and don't copy + paste Gellin's base, you should at least try to make your own base by studying his code.

If you use Gellin's base, you're a noob.
am i a noob?
i use gellins base but it isnt really gellins base any more
it was
Quote Originally Posted by matypatty View Post
am i a noob?
i use gellins base but it isnt really gellins base any more
it was
Well at least you edited it some instead of updating a few addresses and releasing.
ok I know im new too this and all that but this might sound noobish but what is gellins base? Never ever heard of it before :P
Lol this guy named Gellin released his base to the world and basically everyone uses it for their menu hacks
Gellins was never patched.
Quote Originally Posted by R45H1D View Post
Gellins was never patched.
You just need to update some stuffs./
Menu.cpp
Code:
#include "Menu.h"

cMenu Menu;
void cMenu::AddItemToMenu(char *szItemName, int iItemMax, int iItemMin, int iDefualtValue)
{
	++mSet.NumberOfItems;
	mOpt[mSet.NumberOfItems].option  = szItemName;
	mOpt[mSet.NumberOfItems].noptmax = iItemMax;
	mOpt[mSet.NumberOfItems].nopt    = iDefualtValue;
	mOpt[mSet.NumberOfItems].noptmin    = iItemMin;
}

void cMenu::InitiateMenu(void)
{
	mSet.x = 10;
	mSet.y = 40;
	mSet.min = 1;
	mSet.current = 1;
	mSet.show = false;
	mSet.loaded = false;
	AddItemToMenu("Box Esp"        ,1, 0, 0);//1
	AddItemToMenu("Fly Hack"       ,1, 0, 0);//2
	AddItemToMenu("No Fog"         ,1, 0, 0);//3
	AddItemToMenu("Speedhack"	   ,1, 0, 0);//4
	AddItemToMenu("No Spread"      ,1, 1, 0);//5
	AddItemToMenu("CamPos"         ,2, 0, 0);//6
	AddItemToMenu("Respawn"        ,1, 0, 0);//7
	AddItemToMenu("Tracers"	       ,1, 0, 0);//8
	AddItemToMenu("Windowed"	   ,1, 0, 0);//9
	AddItemToMenu("ShowFps"	       ,1, 0, 0);//10
	AddItemToMenu("Unlock Cursor"  ,1, 0, 0);//11
	AddItemToMenu("Fog Editor"     ,1, 0, 0);//12
	AddItemToMenu("Fog Red Val"  ,255, 0, 0);//13
	AddItemToMenu("Fog Blue Val" ,255, 0, 0);//14
	AddItemToMenu("Fog Green Val",255, 0, 0);//15
	AddItemToMenu("No Recoil"	   ,1, 0, 0);//16
    AddItemToMenu("No Sway"        ,1, 0, 0);//17
    AddItemToMenu("Suicide"        ,1, 0, 0);//18
    AddItemToMenu("Crosshair"      ,1, 0, 0);//19
    AddItemToMenu("SuperJump"	   ,1, 0, 0);//20
    AddItemToMenu("skeleton"	   ,1, 0, 0);//21
    AddItemToMenu("Chams"	       ,1, 0, 0);//22
    AddItemToMenu("Fullbright"	   ,1, 0, 0);//23
    AddItemToMenu("player glow"	   ,1, 0, 0);//24
    AddItemToMenu("LongReach"	   ,1, 0, 0);//25
    AddItemToMenu("FasterReload"   ,1, 0, 0);//26
    AddItemToMenu("breath"	       ,1, 0, 0);//27
    AddItemToMenu("player name"	   ,1, 0, 0);//28
	AddItemToMenu("Ammo Conserve"  ,1, 0, 0);//29
	AddItemToMenu("Godmode"        ,1, 0, 0);//30
	mSet.max = ( this->mSet.NumberOfItems ) + 1;
}
void cMenu::RenderMenu(void)
{
	if(mSet.loaded == false)
	{
	InitiateMenu();
	mSet.loaded = true;
	}

	if (GetAsyncKeyState(VK_INSERT)&1)
		mSet.show = !mSet.show;

		if(mSet.show)
		{
			if(GetAsyncKeyState(VK_UP)&1)
				mSet.current--;
			if(GetAsyncKeyState(VK_DOWN)&1)	
				mSet.current++;
		
		if(GetAsyncKeyState(VK_LEFT)&1){
			if(mOpt[mSet.current].nopt > mOpt[mSet.current].noptmin){
			mOpt[mSet.current].nopt = mOpt[mSet.current].nopt - 1;
			}	
		}

		if(GetAsyncKeyState(VK_RIGHT)&1){
			if(mOpt[mSet.current].nopt < mOpt[mSet.current].noptmax){
			mOpt[mSet.current].nopt = mOpt[mSet.current].nopt + 1;
			}
		}
	
		if(mSet.current < 1) 
			mSet.current = mSet.max-1;

		if(mSet.current > mSet.max-1) 
			mSet.current = 1;

		for(i= mSet.min; i < mSet.max; i++)
		{
			if(mOpt[i].nopt == 1){
				Directx.DrawString(mSet.x, mSet.y + (11*i), D3DCOLOR_ARGB (255 , 0 , 255 , 0 ), Directx.pFont, mOpt[i].option);//Hack On Text Green
				sprintf_s(this->mSet.optionstat, "   %i .00", this->mOpt[i].nopt);
				Directx.DrawString(mSet.x + 85, mSet.y + (11*i), D3DCOLOR_ARGB( 255 , 30 , 255 , 255 ), Directx.pFont, mSet.optionstat);//Hack on Num 1 Turns Cyan its like Baby Blue
			}

			if(mOpt[i].nopt == 0){
				Directx.DrawString(mSet.x, mSet.y + (11*i), D3DCOLOR_ARGB (255 , 255 , 0 , 0 ), Directx.pFont, mOpt[i].option);//Hack off Text Red
				sprintf_s(this->mSet.optionstat, "   %i .00", this->mOpt[i].nopt);
				Directx.DrawString(mSet.x + 85, mSet.y + (11*i), D3DCOLOR_ARGB (255 , 255 , 255 , 255 ), Directx.pFont, mSet.optionstat);//Hack off Number 1 Turns White
			}
		}
	}
}
Menu.h
Code:
#ifndef __MENU_H__
#define __MENU_H__

#pragma once

#include "Files.h"

struct Menuoptions{
	char* option;
	bool current;
	int nopt, noptmax, noptmin;
	};

struct MenuSettings{
	int x, y, current, min,
		max, NumberOfItems;
	bool show, loaded;
	char optionstat[256];
};

class cMenu{
	public:
		Menuoptions mOpt[31];
		void RenderMenu(void);
	MenuSettings mSet;

int i;
	private:
		LPPOINT Cur;
		void InitiateMenu(void);
		void AddItemToMenu(char *szItemName, int iItemMax, int iItemMin, int iDefualtValue);
	
};


extern class cMenu Menu;

#endif
How to use this in Base.cpp?
Code:
		if( Menu.mOpt[1].nopt > 0 )//3D Box's
			PushToConsole( "ModelDebug_DrawBoxes 1" );
		else
			PushToConsole( "ModelDebug_DrawBoxes 0" );
Press thanks and give credits if you use this
Posts 1–14 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us