• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sipping
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Page 1 of 2 12 LastLast
    Results 1 to 10 of 11
    1. #1
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      programmer's Avatar
      Join Date
      Jul 2012
      Location
      great britain
      Posts
      51
      Thanks (-->)
      0
      Thanks (<--)
      0

      Directx Menu (Help Fixing The Code Please)

      How to Manual Map DLL
      Code:
      #include "Hacks.h"
      
      
      int MenuIndex = 0;
      
      D3DCOLOR fontRed = D3DCOLOR_ARGB(255, 255, 0, 0);
      D3DCOLOR fontGreen = D3DCOLOR_ARGB(255, 0, 255, 0);
      D3DCOLOR fontBlue = D3DCOLOR_ARGB(255, 0, 0, 255);
      D3DCOLOR fontWhite = D3DCOLOR_ARGB(255, 255, 255, 255);
      D3DCOLOR fontBlack = D3DCOLOR_ARGB(255, 0, 0, 0);
      
      void Hacks::CreateFont(IDirect3DDevice9 *d3dDevice, std::string choiceFont)
      {
      	D3DXCreateFont(d3dDevice, 20, 0, FW_BOLD, 0, FALSE, DEFAULT_CHARSET,
      		      OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE,
      				  choiceFont.c_str(), &amp;Font);
      }
      
      void Hacks::InitializeMenuItems()
      {
      	hack[WALLHACK].name = " WallHack And Chams ";
      	hack[CUSTOM_CROSSHAIR].name = " Show custom crosshair ";
      	hack[NO_RECOIL].name = " No Recoil ";
      	hack[UNLIMITED_AMMO].name = " UNLIMITED AMMO ";
      	hack[AUTO_FIRE].name = " All Guns Automatic ";
      	hack[HIDE_MENU].name = " Hide hacks[INSERT] ";
      	hack[HIDE_MENU].on = false;
      
      
      }
      
      void Hacks::Draw_Text(LPCSTR TextToDraw, int x, int y, D3DCOLOR Color)
      {
      	RECT rct = {x - 120, y, x + 120, y + 15};
      	Font-&gt;DrawTextA(NULL, TextToDraw, -1, &amp;rct, DT_NOCLIP, Color);
      }
      
      void Hacks::DrawMenu(IDirect3DDevice9 *d3dDevice)
      {
      	if(!hack[HIDE_MENU].on)
      	{
      		DrawFilledRectangln(55, 20, 200, 50, fontBlue, d3dDevice);
      		DrawBorderBox(55, 20, 200, 50, 4, fontBlack, d3dDevice);
      		Draw_Text("GAME NAME HERE", 190, 30, fontWhite);
      
      		DrawFilledRectangln(30, 55, 250, (62*MAX_MENU_ITEMS), fontBlue, d3dDevice);
      		DrawBorderBox(30, 55, 250, (62*MAX_MENU_ITEMS), 6, fontBlack, d3dDevice);
      
      		int y = 40;
      		for(int i = 0; i &lt; MAX_MENU_ITEMS; i ++)
      		{
      		DrawFilledRectangln(45, 30+y, 220, 40, hack[i].on ? fontGreen : fontRed, d3dDevice);
      		DrawBorderBox(45, 30+y, 220, 40, 4, fontBlack, d3dDevice);
      
      		if(MenuIndex == i)
      		{
      			DrawBorderBox(41, 26+y, 228, 48, 4, fontWhite, d3dDevice );
      		}
      
      		Draw_Text(hack[i].name.c_str(), 170, 39+y, fontBlack);
      		y+=50;
      		}
      		Draw_Text("Select using arrow keys", 170, ((62*MAX_MENU_ITEMS)+7), fontWhite);
      		Draw_Text("Turn ON/OFF [END] key", 170, ((62*MAX_MENU_ITEMS)+27), fontWhite);
      	}
      
      
      
      }
      
      void Hacks::DrawFilledRectangln(int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* d3dDevice)
      {
      	D3DRECT rct = {x, y, x + w, y + h};
      	d3dDevice-&gt;Clear(1, &amp;rct, D3DCLEAR_TARGET | D3DCLEAR_TARGET, color, 0, 0);
      }
      
      void Hacks::DrawBorderBox( int x, int y, int w, int h, int thickness, D3DCOLOR color, IDirect3DDevice9 *d3dDevice)
      {
      	DrawFilledRectangln(x, y, w, thickness, color, d3dDevice);
      
      	DrawFilledRectangln(x, y, thickness, h, color, d3dDevice);
      
      	DrawFilledRectangln(x+w, y, thickness, h, color, d3dDevice);
      
      	DrawFilledRectangln(x, y+h, w+thickness, thickness, color, d3dDevice);
      
      
      }
      
      void Hacks::KeyboardInput()
      {
      	if(GetAsyncKeyState(VK_UP)&amp;1)
      	{
      		if(MenuIndex &gt; 0)
      		{
      		MenuIndex--;
      		}
      	}
      	if(GetAsyncKeyState(VK_DOWN)&amp;1)
      	{
      		if(MenuIndex &gt; MAX_MENU_ITEMS-1)
      		{
      		MenuIndex++;
      		}
      	}
      	if(GetAsyncKeyState(VK_END)&amp;1)
      	{
      		hack[MenuIndex].on = !hack[MenuIndex].on;
      	}
      	if(GetAsyncKeyState(VK_INSERT)&amp;1)
      	{
      		hack[HIDE_MENU].on = !hack[HIDE_MENU].on;
      	}
      }
      humans can success just if they failed .
      thank me if i helped .

      more thanks more hacks .

      programmer .

    2. #2
      Hacker
      Retired
       
      Pawning
       
      Crazywink's Avatar
      Join Date
      Jul 2012
      Location
      US
      Posts
      646
      Thanks (-->)
      111
      Thanks (<--)
      228
      if you can do code brackets around your code you posted it would help a lot for us to read. I'm looking at it now..

    3. #3
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      programmer's Avatar
      Join Date
      Jul 2012
      Location
      great britain
      Posts
      51
      Thanks (-->)
      0
      Thanks (<--)
      0
      The Problem That When I Inject It , It Shows Me Blue Board Without Any Texts And Buttons .

      But It Says 1 success 0 Fails .
      humans can success just if they failed .
      thank me if i helped .

      more thanks more hacks .

      programmer .

    4. #4
      Hacker
      Retired
       
      Pawning
       
      Crazywink's Avatar
      Join Date
      Jul 2012
      Location
      US
      Posts
      646
      Thanks (-->)
      111
      Thanks (<--)
      228
      Hmm.. I don't see anything wrong initially.. Can you include your header source too please?

    5. #5
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      programmer's Avatar
      Join Date
      Jul 2012
      Location
      great britain
      Posts
      51
      Thanks (-->)
      0
      Thanks (<--)
      0
      Header source :

      Code:
      #pragma once
      
      
      #include &lt;Windows.h&gt;
      #include "d3d9.h"
      #include &lt;ctime&gt;
      #include &lt;iostream&gt;
      
      #define D3DHOOK_TEXTURES
      #define MAX_MENU_ITEMS 6
      
      #define WALLHACK 0
      #define CUSTOM_CROSSHAIR 1
      #define NO_RECOIL 2
      #define UNLIMITED_AMMO 3
      #define AUTO_FIRE 4
      #define HIDE_MENU 5
      
      
      class Hacks
      {
      public:
      	int m_stride;
      	void Hacks::CreateFont(IDirect3DDevice9 *d3dDevice, std::string choiceFont);
      	void Hacks::InitializeMenuItems();
      	void Hacks::Draw_Text(LPCSTR TextToDraw, int x, int y, D3DCOLOR Color);
      	void Hacks::DrawMenu(IDirect3DDevice9 *d3dDevice);
      	void Hacks::DrawFilledRectangln(int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* d3dDevice);
      	void Hacks::DrawBorderBox( int x, int y, int w, int h, int thickness, D3DCOLOR Color, IDirect3DDevice9 *d3dDevice);
      	void Hacks::KeyboardInput();
      
      	LPDIRECT3DTEXTURE9 textRed;
      	LPDIRECT3DTEXTURE9 textGreen;
      
      	LPDIRECT3DTEXTURE9 textBlue;
      	LPDIRECT3DTEXTURE9 textWhite;
      
      	D3DVIEWPORT9 ViewPort;
      
      	LPD3DXFONT Font;
      
      	struct d3dMenuHack
      	{
      		bool on;
      		std::string name;
      	};
      
      	d3dMenuHack hack[MAX_MENU_ITEMS];
      };

      Please start using the Source button(#) when pasting code
      humans can success just if they failed .
      thank me if i helped .

      more thanks more hacks .

      programmer .

    6. #6
      Hacker
      Retired
       
      Pawning
       
      Crazywink's Avatar
      Join Date
      Jul 2012
      Location
      US
      Posts
      646
      Thanks (-->)
      111
      Thanks (<--)
      228
      This is really strange, I can't see a single thing wrong.. What are you injecting this into?

    7. #7
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      programmer's Avatar
      Join Date
      Jul 2012
      Location
      great britain
      Posts
      51
      Thanks (-->)
      0
      Thanks (<--)
      0
      Call Of Duty 4 Modern Warfare
      And Also I Tried To Combat Arms Europe
      humans can success just if they failed .
      thank me if i helped .

      more thanks more hacks .

      programmer .

    8. #8
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      programmer's Avatar
      Join Date
      Jul 2012
      Location
      great britain
      Posts
      51
      Thanks (-->)
      0
      Thanks (<--)
      0
      I fixed it :
      I added the wall hack source and it worked very good and the second thing was i wrote texRed -&gt;textRed &amp; texBlue -&gt; textBlue &amp; texGreen-&gt;textGreen....
      (text* is wrong)
      humans can success just if they failed .
      thank me if i helped .

      more thanks more hacks .

      programmer .

    9. #9
      Newbie
      Learning to hack games!
       
      Feeling Normal
       

      Join Date
      Jun 2012
      Posts
      21
      Thanks (-->)
      0
      Thanks (<--)
      0
      Where you resetting? Font.OnLostDevice, Font.OnResetDevice, normally hooking the DirectX function Reset is good place to do this without getting detected(depending on AntiCheat Engine)

    10. #10
      Newbie
      Learning to hack games!
       
      Feeling Normal
       

      Join Date
      Jul 2012
      Posts
      30
      Thanks (-->)
      1
      Thanks (<--)
      0
      Cheat Engine Tutorials
      Quote Originally Posted by programmer
      The Problem That When I Inject It , It Shows Me Blue Board Without Any Texts And Buttons .

      But It Says 1 success 0 Fails .
      What blue board, can you upload the screen shot?

    Page 1 of 2 12 LastLast

    Similar Game Hacker Threads

    1. [Source Code] DirectX D3D Menu Source Code
      By thebassdropper in forum Direct3d OpenGL & Graphics APIs
      Replies: 8
      Last Post: 03-27-2017, 06:44 AM
    2. [Tutorial] How to make a DirectX Menu [C++]
      By TastyHorror in forum C / C++
      Replies: 14
      Last Post: 10-19-2016, 04:30 PM
    3. [Help] Directx menu text
      By Chriko2502 in forum GH Tutorials Help
      Replies: 11
      Last Post: 08-27-2013, 01:24 AM
    4. [Help] DIRECTX MENU - Help
      By Chriko2502 in forum GH Tutorials Help
      Replies: 6
      Last Post: 08-15-2013, 02:33 PM
    5. [Help] DirectX menu
      By wooolly in forum GH Tutorials Help
      Replies: 12
      Last Post: 01-22-2013, 05:32 AM