Hi guys I decided to make a tutorial for all those noobs that want to be 1337 haxor like me ...well I'm not going to hold your hand through it completely...I will add some errors and you should figure them out (: make you think o:

I recommend getting the D3D9 StarterKit... Anyways under "Globals" (*cough* top of code *cough*) put:
Code:
  float ScreenCenterX = 0.0f; //Horizontal Position 
  float ScreenCenterY = 0.0f; //Vertical Position  
  bool crosshair = false; //to see wether you want it on or off (set to "off")
  D3DCOLOR redt = D3DCOLOR_XRGB( 255, 0, 0 ); // Your color...
Next, in SetViewPort add this ( Hint: to find the SetViewPort easily in the starter kit press "ctrl + f" and search for SetViewPort)
Code:
          ScreenCenterx = ( float )pViewport->Width / 2; 
          ScreenCenterY = ( float )pViewport->Height / 2
Step 2: add this in "EndScene"( hint: you can find this like you did with SetViewPort by pressing "ctrl + f" and typing EndScene )
Code:
if(crosshair) 
     {  
       D3DRECT rec2 = {ScreenCenterX-20, ScreenCenterY, ScreenCenterX+ 20, ScreenCenterY+2}; 
       D3DRECT rec3 = {ScreenCenterX, ScreenCenterY-20, ScreenCenterX+ 2,ScreenCenterY+20}; 
                                  
    m_pD3Ddev->Clear(1, &rec2, D3DCLEAR_TARGET,redt, 0,  0); 
    m_pD3Ddev->Clear(1, &rec3, D3DCLEAR_TARGET,redt, 0,  0);
Now to add hotkeys...this is used to turn your hack on or off

Code:
if (GetAsyncKeyState(VK_NUMPAD0) & 1 )          //<----- this doesn't have to be NumberPad 0 it can be anything you want 
{
   Crosshair =! crosshair 
}
If you have any problems...(other than the ones I put there on purpose) put it in the comments

+ Thanks if I helped!!!