Does anyone know how to compile this D3D crosshair into dll file so it work for a game?
for COD4 for example...
but only crosshair nothing else.
C++:
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 <- ->
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 );
}
}
but only crosshair nothing else.