• 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 7 of 7
    1. #1
      Coder
      Newbie Noob
       
      Coding
       
      mPulse's Avatar
      Join Date
      Jun 2013
      Location
      Winland
      Posts
      107
      Thanks (-->)
      38
      Thanks (<--)
      10

      Arrow C# Direct-x Custom Crosshair Tutorial(Fleep's Tutorial)

      Silent VPN
      I didnt find that topic where is talking about "C# Direct-x Custom Crosshair Tutorial" and if there is that im sorry :/'




      downloaded wrote everything what Fleep wrote(also fix) and got some problems :/ I Downloaded Fleep's Source and checked there,everything was ok.... But I can't choose Crosshair/Size/Color/OnOff button Only "App/Game" Menu does work :/

      I tried out Fleep's One and When I run it(tested run an adminstor still problems) I can see only black screen :/
      ---------------------
      Here is my form.cs



      And some Pictures:
      Fleep's One
      https://i.imgur.com/7e5qdY5.png


      Mine:
      [Imgur](https://i.imgur.com/fQDwbMU.png)

    2. #2
      Coder
      Newbie Noob
       
      Coding
       
      mPulse's Avatar
      Join Date
      Jun 2013
      Location
      Winland
      Posts
      107
      Thanks (-->)
      38
      Thanks (<--)
      10
      Anyone can help?

      //bumb//

    3. #3
      Hacker
      Working, University, Coding ..
       
      Drinking
       
      GAFO666's Avatar
      Join Date
      Aug 2012
      Location
      if(PlayerBase << 16) return IdontKnow("yolo");
      Posts
      531
      Thanks (-->)
      33
      Thanks (<--)
      102
      this does not work for me as well. no idea why not O_o

      But you could do it in c++ by parsing a picture of your costum painted crosshair like a smiley into a byte array and just :
      Code:
      int posX, posY;
      
      LPDIRECT3DTEXTURE9 pTextureInterface = NULL;
      LPD3DXSPRITE pSpriteInterface = NULL;
      
      D3DXCreateTextureFromFileInMemoryEx(pDevice, bBackground, sizeof(bBackground), posX, posY, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, 0, 0, &pTextureInterface);
      	D3DXCreateSprite(pDevice, &pSpriteInterface);
      	
      	pSpriteInterface->Begin(D3DXSPRITE_ALPHABLEND);
      	pSpriteInterface->Draw(pTextureInterface, NULL, NULL, &MenuPosition, 0xFFFFFFFF);
      	pSpriteInterface->End();
      If you want do that, I mean its just a suggestion you can parse it by a "file to bytearray tool" if you search the net or just pm me, if you dont find one (bBackground == the byte array from the tool you get, just put it into your source)


      orrrrr if you want a simple crosshair

      Code:
      void DrawCross(LPDIRECT3DDEVICE9 pDevice, int size)
      {
      	float ScreenCenterX = 0.0f;
      	float ScreenCenterY = 0.0f;	
      	D3DVIEWPORT9 g_ViewPort; 
      
      	pDevice->GetViewport(&g_ViewPort);
       
          ScreenCenterX = (float)g_ViewPort.Width / 2;
          ScreenCenterY = (float)g_ViewPort.Height / 2;
      		
      	
      		D3DRECT rec2 = {ScreenCenterX-size, ScreenCenterY, ScreenCenterX+size, ScreenCenterY+1};
      		D3DRECT rec3 = {ScreenCenterX, ScreenCenterY-size, ScreenCenterX+1, ScreenCenterY+size};
      		pDevice->Clear(1, &rec2, D3DCLEAR_TARGET,RED, 0, 0);
      		pDevice->Clear(1, &rec3, D3DCLEAR_TARGET,RED, 0, 0);	
      }
      Thats no c# or an overlay like in that tut but I dont know any other way, hope your not mad at me :P I dont know someone who write hacks in c# anyways soooo Well if you not wanna stick to c# you can take this, otherways ignore it, just a suggestion cuz no1 answered 3 days

    4. #4
      Coder
      Newbie Noob
       
      Coding
       
      mPulse's Avatar
      Join Date
      Jun 2013
      Location
      Winland
      Posts
      107
      Thanks (-->)
      38
      Thanks (<--)
      10
      ///BUMB// Really Anyone dont know?

    5. #5
      Coder
      Newbie Noob
       
      Coding
       
      mPulse's Avatar
      Join Date
      Jun 2013
      Location
      Winland
      Posts
      107
      Thanks (-->)
      38
      Thanks (<--)
      10
      //bumb// Anyone? I want update that but I cant because there is problem what I cant solv :/

    6. #6
      Jr.Hacker
      Haze-Productions
       
      Coding
       
      rN''s Avatar
      Join Date
      Jan 2014
      Posts
      340
      Thanks (-->)
      20
      Thanks (<--)
      126
      Try to translate this from C++ to C#. It's not hard..
      void DrawCrosshair( int iSize )
      {
      static bool bEnabled = false;

      if( GetAsyncKeyState( VK_INSERT ) & 1 )
      {
      bEnable = !bEnable;
      }
      if( bEnable )
      {
      Direct3D9::pRender->Rect( Direct3D9::getCenter( "x" ) - iSize / 2, Direct3D9::getCenter( "y" ), iSize, 1, Color( 0xFFFF0000 ) );
      Direct3D9::pRender->Rect( Direct3D9::getCenter( "x" ), Direct3D9::getCenter( "y" ) - iSize / 2, 1, iSize, Color( 0xFFFF0000 ) );
      }
      }


      best regards

    7. #7
      Newbie
      "Anything that can go
      wrong, will go wrong"
       
      Meh
       
      TheUnknown's Avatar
      Join Date
      Feb 2013
      Posts
      48
      Thanks (-->)
      1
      Thanks (<--)
      4
      Silent VPN
      Quote Originally Posted by rN' View Post
      Try to translate this from C++ to C#. It's not hard..
      void DrawCrosshair( int iSize )
      {
      static bool bEnabled = false;

      if( GetAsyncKeyState( VK_INSERT ) & 1 )
      {
      bEnable = !bEnable;
      }
      if( bEnable )
      {
      Direct3D9::pRender->Rect( Direct3D9::getCenter( "x" ) - iSize / 2, Direct3D9::getCenter( "y" ), iSize, 1, Color( 0xFFFF0000 ) );
      Direct3D9::pRender->Rect( Direct3D9::getCenter( "x" ), Direct3D9::getCenter( "y" ) - iSize / 2, 1, iSize, Color( 0xFFFF0000 ) );
      }
      }


      best regards
      public static void DrawCrosshair( int iSize )
      {
      static bool bEnabled = false;

      if( GetAsyncKeyState( VK_INSERT ) & 1 )
      {
      bEnable = !bEnable;
      }
      if( bEnable )
      {
      Direct3D9::pRender->Rect( Direct3D9::getCenter( "x" ) - iSize / 2, Direct3D9::getCenter( "y" ), iSize, 1, Color( 0xFFFF0000 ) );
      Direct3D9::pRender->Rect( Direct3D9::getCenter( "x" ), Direct3D9::getCenter( "y" ) - iSize / 2, 1, iSize, Color( 0xFFFF0000 ) );
      }
      }

      This one.
      Hope i helped.
      [

    Similar Game Hacker Threads

    1. [VideoTutorial] C# DirectX Overlay Custom Crosshair Cheat Tutorial
      By [GH]Rake in forum GH Hack Video Tutorials
      Replies: 19
      Last Post: 08-26-2017, 03:50 AM
    2. [Help] Fleep's Signature Scanning Tutorial (C++)
      By WhiteHood in forum Hacking Help
      Replies: 2
      Last Post: 01-26-2016, 05:48 AM
    3. [Help] Fleep's Triggerbot tutorial!
      By __Steven in forum Hacking Help
      Replies: 7
      Last Post: 07-28-2014, 09:04 AM
    4. [Help] Fleep c++ Esp Tutorial problem
      By trolo123 in forum GH Tutorials Help
      Replies: 8
      Last Post: 12-26-2013, 07:58 AM
    5. [Help] Direct X menu Tutorial C++
      By Brackston in forum GH Tutorials Help
      Replies: 7
      Last Post: 12-05-2013, 11:24 AM

    Tags for this Thread