Results 1 to 2 of 2
  1. #1
    Maroon5.'s Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    "C:\Program Files (x86)\Maroon5\One More Night.mp4"
    Posts
    661
    Reputation
    47
    Thanks
    863
    My Mood
    Devilish

    Help Crosshair Qmo

    Hello bro @Qmo . can help me with this D3D Crosshair ?
    Usually I used the Top file In (.h) file
    Main.h
    #####################################
    #include <windows.h>
    #include <Winuser.h>
    #include <stdio.h>
    #include <fstream>
    #include <stdio.h>
    #include <time.h>
    //////////////////////////
    #include <d3d9.h>
    #include <d3dx9.h>
    #pragma comment (lib, "d3d9.lib")
    #pragma comment (lib, "d3dx9.lib")
    #define pD3DdeviceX LPDIRECT3DDEVICE9
    #define pD3DvertexX LPDIRECT3DVERTEXBUFFER9

    ///////Microsoft Detour v1.5////////

    #include "detours.h"
    ///////////////////////////////////////
    #pragma comment (lib, "detours.lib")
    #define PI 3.14159265//Defining what PI is. PI is a Circle
    int CenterX = GetSystemMetrics( 0 ) / 2-1;//Gets screen X resolution then cutting it in half to get the center.
    int CenterY = GetSystemMetrics( 1 ) / 2-1;//Gets screen Y resolution then cutting it in half to get the center.
    LPDIRECT3DDEVICE9 pDevice;
    ID3DXLine *pLine;

    //////////////VOID////////////////
    //DrawLine(XPosStart,YPosStart,XPosFinish,YPosFinish ,Width,Color);
    void DrawLine(float x, float y, float x2, float y2, float width, DWORD color)
    {
    D3DXVECTOR2 vLine[2];
    pLine->SetWidth( width );
    pLine->SetAntialias( false );
    pLine->SetGLLines( true );
    vLine[0].x = x;
    vLine[0].y = y;
    vLine[1].x = x2;
    vLine[1].y = y2;
    pLine->Begin();
    pLine->Draw( vLine, 2, color );
    pLine->End();
    }
    //FillRGB(XPosition,YPosition,Width,Height,Color);
    void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
    {
    D3DRECT rec = { x, y, x + w, y + h };
    pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
    }
    //DrawCircle(XPosition,YPosition,Radius,numSides,Col or);
    void DrawCircle(int X, int Y, int radius, int numSides, DWORD Color)
    {

    D3DXVECTOR2 Line[128];
    float Step = PI * 2.0 / numSides;
    int Count = 0;
    for (float a=0; a < PI*2.0; a += Step)
    {
    float X1 = radius * cos(a) + X;
    float Y1 = radius * sin(a) + Y;
    float X2 = radius * cos(a+Step) + X;
    float Y2 = radius * sin(a+Step) + Y;
    Line[Count].x = X1;
    Line[Count].y = Y1;
    Line[Count+1].x = X2;
    Line[Count+1].y = Y2;
    Count += 2;
    }
    pLine->Begin();
    pLine->Draw(Line,Count,Color);
    pLine->End();
    }
    //DrawPoint(XPosition,YPosition,Width,Height,Color);
    void DrawPoint(int x, int y, int w, int h, DWORD color)
    {
    FillRGB((int)x, (int)y, (int)w, (int)h, color);

    }

    ###################################

    And this Is Main.ccp

    ###################################
    #include "color.h" // (My base With full RGB Colors)
    #Include 'Main.h"

    //How actually the Crosshair Works ?
    //Has Solution ? Or you can help me by share the Full Code Of your's
    //------------------------------------------------------
    {
    FillRGB(CenterX-20, CenterY, 40, 1,Purple,pDevice);//Purple
    FillRGB(CenterX, CenterY-20, 1, 40,Purple,pDevice);

    FillRGB(CenterX-17, CenterY, 34, 1,Blue,pDevice);//Blue
    FillRGB(CenterX, CenterY-17, 1, 34,Blue,pDevice);

    FillRGB(CenterX-14, CenterY, 28, 1,Cyan,pDevice);//Cyan
    FillRGB(CenterX, CenterY-14, 1, 28,Cyan,pDevice);

    FillRGB(CenterX-11, CenterY, 22, 1,Green,pDevice);//Green
    FillRGB(CenterX, CenterY-11, 1, 22,Green,pDevice);

    FillRGB(CenterX-9, CenterY, 18, 1,Yellow,pDevice);//Yellow
    FillRGB(CenterX, CenterY-9, 1, 18,Yellow,pDevice);

    FillRGB(CenterX-6, CenterY, 12, 1,Orange,pDevice);//Orange
    FillRGB(CenterX, CenterY-6, 1, 12,Orange,pDevice);

    FillRGB(CenterX-3, CenterY, 6, 1,Red,pDevice);//Red
    FillRGB(CenterX, CenterY-3, 1, 6,Red,pDevice);
    }
    {
    }
    {
    }

  2. #2
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,009
    Reputation
    246
    Thanks
    5,771
    My Mood
    Relaxed
    @Maroon5.


    Sorry I can't give all the code, But for Crosshair you must used this code and use undetec hook and dip
    you can use this Source :


    Code:
    if (cross)
    
        if(cross)
    
    {
    
     
    
                int x = ( GetSystemMetrics( 0 ) / 2);
                int y = ( GetSystemMetrics( 1 ) / 2);
    
     
    
                    D3DRECT rec = { x - 28, y, x + 28, y + 1};
                    D3DRECT rec2 = { x, y - 28, x + 1, y + 28};
                    D3DRECT rec3 = { x, y - 22, x + 1, y + 22};
                    D3DRECT rec4= { x - 22, y, x + 22, y + 1};
                    D3DRECT rec5 = { x, y - 18, x + 1, y + 18};
                    D3DRECT rec6= { x - 18, y, x + 18, y + 1};
                    D3DRECT rec7= { x - 12, y, x + 12, y + 1};
                    D3DRECT rec8 = { x, y - 12, x + 1, y + 12};
                    D3DRECT rec9 = { x, y - 8, x + 1, y + 8};
                    D3DRECT rec10= { x - 8, y, x + 8, y + 1};
                    D3DRECT rec11= { x, y - 4, x + 1, y + 4};
                    D3DRECT rec12= { x - 4, y, x + 4, y + 1};
                    D3DRECT rec13= { x, y - 2, x + 1, y + 2};
                    D3DRECT rec14= { x - 2, y, x + 2, y + 1};
                    pDevice->Clear(1, &rec, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,160,0,255), 0, 0);
                    pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,160,0,255), 0, 0);
                    pDevice->Clear(1, &rec3, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,160,0,255), 0, 0);
                    pDevice->Clear(1, &rec4, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,160,0,255), 0, 0);
                    pDevice->Clear(1, &rec5, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,255,192,203), 0, 0);
                    pDevice->Clear(1, &rec6, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,255,192,203), 0, 0);
                    pDevice->Clear(1, &rec7, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,0,255,0), 0, 0);
                    pDevice->Clear(1, &rec8, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,0,255,0), 0, 0);
                    pDevice->Clear(1, &rec9, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,255,255,0), 0, 0);
                    pDevice->Clear(1, &rec10, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,255,255,0), 0, 0);
                    pDevice->Clear(1, &rec11, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,255,160,0), 0, 0);
                    pDevice->Clear(1, &rec12, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,255,160,0), 0, 0);
                    pDevice->Clear(1, &rec13, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,255,0,0), 0, 0);
                    pDevice->Clear(1, &rec14, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,255,0,0), 0, 0);
    
    }
    [/B][/SIZE][/COLOR][/FONT]
    Last edited by Qmo; 06-02-2013 at 04:50 AM.





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  3. The Following 2 Users Say Thank You to Qmo For This Useful Post:

    Maroon5. (06-02-2013),syahir_hacker (06-02-2013)

Similar Threads

  1. [Help Request] Need help crosshair help
    By deniz617 in forum CrossFire Help
    Replies: 2
    Last Post: 08-13-2011, 10:36 PM
  2. [Help]Crosshair
    By shoot2killl in forum Visual Basic Programming
    Replies: 12
    Last Post: 03-12-2010, 11:09 AM
  3. Help! - Crosshair V1.0 (Need help)
    By AeroMan in forum Visual Basic Programming
    Replies: 11
    Last Post: 11-08-2009, 02:57 AM
  4. Help| Crosshair...
    By fallenleaves in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 12-25-2008, 11:07 AM
  5. help ... CROSSHAIR !
    By Alen in forum WarRock - International Hacks
    Replies: 12
    Last Post: 11-03-2007, 05:11 PM