URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Hack Community
  HTML https://roshacks.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Codes
       *****************************************************
       #Post#: 66--------------------------------------------------
       [C++] Simple Crosshair
   DIR By: pipo1337
       Date: April 2, 2018, 1:53 am
       ---------------------------------------------------------
       main.h
       --- Code ---
       void CrossHair(LPDIRECT3DDEVICE9 pDevice, D3DCOLOR Colore){
       D3DVIEWPORT9 Viewport;
       pDevice->GetViewport(&Viewport);
       DWORD ScreenX = Viewport.Width / 2;
       DWORD ScreenY = Viewport.Height / 2;
       D3DRECT rec2 = {ScreenX-9, ScreenY, ScreenX+9, ScreenY+1};
       D3DRECT rec3 = {ScreenX, ScreenY-9, ScreenX+1, ScreenY+9};
       pDevice->Clear(1, &rec2, D3DCLEAR_TARGET,Colore, 0, 0);
       pDevice->Clear(1, &rec3, D3DCLEAR_TARGET,Colore, 0, 0);
       }
       --- End Code ---
       main.cpp
       --- Code ---
       if(crosshair == 1)
       {
       CrossHair(pDevice, D3DCOLOR_ARGB(255, 255, 0, 0));
       }
       --- End Code ---
       *****************************************************
       Page 1 of 1