• 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
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 5 of 5

    Thread: Crosshair

    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      pogz080's Avatar
      Join Date
      Aug 2012
      Posts
      6
      Thanks (-->)
      0
      Thanks (<--)
      0

      Crosshair

      John Kittz
      Does anyone know how to compile this D3D crosshair into dll file so it work for a game?

      Code:
      void Hacks::DrawCrosshair(IDirect3DDevice9 *d3dDevice)
      {
      	if(hack[CUSTOM_CROSSHAIR].on)
      	{
      		//make sure our line is valid first
      		//basically two very small rectangles
      		//51 because its exactly in the center
      		//accross line &lt;- -&gt;
      		DrawFilledRect( (g_ViewPort.Width/2)-30, (g_ViewPort.Height/2)-1, 60, 3, fontRed, d3dDevice );
      		//Up and down line
      		DrawFilledRect( (g_ViewPort.Width/2)-1, (g_ViewPort.Height/2)-30, 3, 60, fontRed, d3dDevice );
      	}
      }
      for COD4 for example...
      but only crosshair nothing else.

    2. #2
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      velreine's Avatar
      Join Date
      Aug 2012
      Location
      Denmark
      Posts
      36
      Thanks (-->)
      1
      Thanks (<--)
      0
      From what i can see... you have this check if CUSTOM_CROSSHAIR is on. So can't you just do like
      bool AlwaysDrawCrosshair = True;

      and then replace the if at the top with


      if(AlwaysDrawCrosshair)

    3. #3
      Hacker
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      727
      Well I assume you're using that with the D3D hook otherwise its pointless, if the hook is working fine a crosshair will be drawn into every game that you inject it to.

      Fleep

    4. #4
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Glenox's Avatar
      Join Date
      Sep 2012
      Posts
      7
      Thanks (-->)
      9
      Thanks (<--)
      3
      Nice Share!!!

    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
      Cheats'n'Trainers
      watch fleep tutorial of the c++ directx menu then put this code like this
      Code:
      void Hacks::DrawMenu(IDirect3DDevice9 *d3dDevice)
      {
      	if(hack[CUSTOM_CROSSHAIR].on)
      	{
      		//make sure our line is valid first
      		//basically two very small rectangles
      		//51 because its exactly in the center
      		//accross line &lt;- -&gt;
      		DrawFilledRect( (g_ViewPort.Width/2)-30, (g_ViewPort.Height/2)-1, 60, 3, fontRed, d3dDevice );
      		//Up and down line
      		DrawFilledRect( (g_ViewPort.Width/2)-1, (g_ViewPort.Height/2)-30, 3, 60, fontRed, d3dDevice );
      	}
      }
      it 100% works
      Last edited by voidisalive; 09-09-2012 at 07:37 AM. Reason: The user didn't use code tags

    Similar Game Hacker Threads

    1. [Help] [HELP] D3D CrossHair in d3d8 ??
      By longkuteno3qb in forum Direct-X, OpenGL
      Replies: 0
      Last Post: 04-21-2016, 10:30 AM
    2. [Help] Custom crosshair
      By Asserio16 in forum Visual Basic
      Replies: 1
      Last Post: 04-08-2014, 02:23 PM
    3. GDI Drawing Crosshair
      By bzh in forum C/C++
      Replies: 10
      Last Post: 07-02-2013, 04:02 PM
    4. Problem with my crosshair :(
      By -Tek in forum Hacking Help
      Replies: 8
      Last Post: 11-11-2012, 07:48 AM
    5. Help with creating D3D Crosshair
      By pogz080 in forum Direct-X, OpenGL
      Replies: 4
      Last Post: 09-05-2012, 06:40 AM