Results 1 to 11 of 11
  1. #1
    devilaim's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    493
    Reputation
    10
    Thanks
    1,612
    My Mood
    Devilish

    CROSSHAIR ALL SOURCE CODE IN GAME



    *HERE THE SOURCE CODE OF CROSSHAIR *

    *Basic Crosshair*
    [IMG]https://i238.photobucke*****m/albums/ff101/wes0001/4.jpg[/IMG]
    Notes:
    When you see "CenterX-15" it means CenterX Minus 15 pixels.
    Code:
    //FillRGB(XPosition,YPosition,Width,Height,Color);
    Function:
    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 );
    }
    Drawing it:
    FillRGB(CenterX-15, CenterY, 30, 1,Red,pDevice);//Diagonal line
    FillRGB(CenterX, CenterY-15, 1, 30,Red,pDevice);//Vertical line
    *Circle Crosshair*
    [IMG]https://i238.photobucke*****m/albums/ff101/wes0001/1.jpg[/IMG]

    Code:
    //DrawCircle(XPosition,YPosition,Radius,numSides,Col  or);
    Function:
    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(); 
    }
    Drawing it:
    DrawCircle(CenterX,CenterY,8,8,Red);
    *Dot*
    [IMG]https://i238.photobucke*****m/albums/ff101/wes0001/5.jpg[/IMG]
    Notes:
    If you adjust the size you will have to adjust the position to suit.
    Example:
    DrawPoint(CenterX-10,CenterY-10, 10, 10, Green);
    The size is now 10 so i -10 off the XY position to suit.
    Code:
    //DrawPoint(XPosition,YPosition,Width,Height,Color);
    Function:
    void DrawPoint(int x, int y, int w, int h, DWORD color)
    {
        FillRGB((int)x, (int)y, (int)w, (int)h, color);
    
    } 
    Drawing it:
    DrawPoint(CenterX-1,CenterY-1, 1, 1, Green);
    *Cross Crosshair*
    [IMG]https://i238.photobucke*****m/albums/ff101/wes0001/3.jpg[/IMG]
    Notes:
    XPosStart YPosStart starts the line and then XPosFinish YPosFinish is where the line will be drawn too.
    Code:
    //DrawLine(XPosStart,YPosStart,XPosFinish,YPosFinish  ,Width,Color);
    Function:
    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();
    }
    Drawing it:
    DrawLine(CenterX+10,CenterY+10,CenterX-10,CenterY-10,1,Red);
    DrawLine(CenterX-10,CenterY+10,CenterX+10,CenterY-10,1,Red);
    Now that we have the main ones you can start merging them and making your own ones.
    You have all the functions so ill just give your a picture and the drawing code.
    [IMG]https://i238.photobucke*****m/albums/ff101/wes0001/6.jpg[/IMG]
    Code:
    DrawCircle(CenterX,CenterY,8,8,Red);//Circle
    FillRGB(CenterX-17, CenterY, 10, 1,Red,pDevice);//Left line
    FillRGB(CenterX+9, CenterY, 10, 1,Red,pDevice); // Right line
    FillRGB(CenterX, CenterY-17, 1, 10,Red,pDevice);//Top line
    FillRGB(CenterX, CenterY+9, 1, 10,Red,pDevice);//Bottom line
    DrawPoint(CenterX, CenterY, 1, 1, Green);//Dot point
    [IMG]https://i238.photobucke*****m/albums/ff101/wes0001/7.jpg[/IMG]
    Code:
    FillRGB(CenterX-15, CenterY, 10, 1,Red,pDevice);//Left line
    FillRGB(CenterX+6, CenterY, 10, 1,Red,pDevice);//Right line
    FillRGB(CenterX, CenterY-15, 1, 10,Red,pDevice);//Top line
    FillRGB(CenterX, CenterY+6, 1, 10,Red,pDevice);//Bottom line
    DrawPoint(CenterX-1 , CenterY-1, 1, 1, Green);//Dot point
    [IMG]https://i238.photobucke*****m/albums/ff101/wes0001/8.jpg[/IMG]
    Code:
    DrawCircle(CenterX-1,CenterY-1,8,8,Red);//Circle
    FillRGB(CenterX-13, CenterY, 10, 1,Red,pDevice);//Left line
    FillRGB(CenterX+4, CenterY, 10, 1,Red,pDevice);//Right line
    FillRGB(CenterX, CenterY-13, 1, 10,Red,pDevice);//Top line
    FillRGB(CenterX, CenterY+4, 1, 10,Red,pDevice);//Bottom line
    DrawPoint(CenterX-1 , CenterY-1, 1, 1, Green);//Dot point
    [IMG]https://i238.photobucke*****m/albums/ff101/wes0001/9.jpg[/IMG]
    Code:
    DrawLine(CenterX+15,CenterY+15,CenterX+3,CenterY+3  ,2,Red);// Bottom right to center
    DrawLine(CenterX-15,CenterY+15,CenterX-3,CenterY+3,2,Red);//Bottom left to center
    DrawLine(CenterX+15,CenterY-15,CenterX+3,CenterY-3,2,Red);//Top right to center
    DrawLine(CenterX-15,CenterY-15,CenterX-3,CenterY-3,2,Red);//Top left to center
    DrawPoint(CenterX,CenterY,1,1,Green);//Dot point
    [IMG]https://i238.photobucke*****m/albums/ff101/wes0001/10.jpg[/IMG]
    Code:
    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);
    *CODE CREDIT BY: Rusty *


    *TUTORIAL HOW TO CREATE YOUR OWN CROSSHAIR FOLLOW THIS AND LEARN*




    *WATCH IN FOLLOW HIM YOU CAN LEARN A LOT OF THIS TUTORIAL*

    *I HOPE TO CAN LEARN A LITTLE FOR HIS TUTORIAL*






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

    ehhciloerp (04-19-2013),Megaloco (03-29-2015),zachariasgila (04-19-2013)

  3. #2
    Sky_____'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    In My Room
    Posts
    1,377
    Reputation
    20
    Thanks
    1,599
    My Mood
    Dead
    I make one but not work for Blackshot

  4. #3
    devilaim's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    493
    Reputation
    10
    Thanks
    1,612
    My Mood
    Devilish
    Quote Originally Posted by Sky_____ View Post
    I make one but not work for Blackshot
    try to use class library it work in dll

  5. The Following User Says Thank You to devilaim For This Useful Post:

    Sky_____ (04-19-2013)

  6. #4
    zachariasgila's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Next To You ~.~
    Posts
    2
    Reputation
    10
    Thanks
    284
    My Mood
    Angelic
    When We make It.. Will It Work For BlackSHot..

  7. #5
    devilaim's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    493
    Reputation
    10
    Thanks
    1,612
    My Mood
    Devilish
    Quote Originally Posted by zachariasgila View Post
    When We make It.. Will It Work For BlackSHot..
    all crosshair code work in any games

  8. #6
    VeViDo's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    DataBase
    Posts
    43
    Reputation
    44
    Thanks
    155
    My Mood
    Asleep
    GooD Job , But , There Is No One Of Them Visual In BlackShot !

    Doesn't Work For BlackShot With Another Lunguage !


    ---------- Post added at 11:35 PM ---------- Previous post was at 11:33 PM ----------

    Quote Originally Posted by devilaim View Post

    try to use class library it work in dll
    HuH Do it UrSelf Any As A DLL Then Releas It )
    it Will Be Easy Like That )
    And Thanks

  9. #7
    roolno9's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    World of Hacks
    Posts
    26
    Reputation
    13
    Thanks
    59
    My Mood
    Cool
    Thx For TUTORIAL It works for me
    THANKS if I Help


    Yo Yo

  10. #8
    VeViDo's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    DataBase
    Posts
    43
    Reputation
    44
    Thanks
    155
    My Mood
    Asleep
    Quote Originally Posted by roolno9 View Post
    Thx For TUTORIAL It works for me
    In BS Works ?

  11. #9
    zachariasgila's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Next To You ~.~
    Posts
    2
    Reputation
    10
    Thanks
    284
    My Mood
    Angelic
    And Please Post To How To make A DLL...

    ---------- Post added at 02:04 PM ---------- Previous post was at 01:57 PM ----------

    SO.. If We wanted To Do it... Make by DLL or Application ??

  12. #10
    VeViDo's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    DataBase
    Posts
    43
    Reputation
    44
    Thanks
    155
    My Mood
    Asleep
    Quote Originally Posted by zachariasgila View Post
    And Please Post To How To make A DLL...

    ---------- Post added at 02:04 PM ---------- Previous post was at 01:57 PM ----------

    SO.. If We wanted To Do it... Make by DLL or Application ??
    Go Fleep C++ Tutorial i Start Learn From Him )

  13. #11
    Vehrdyn's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    House of house
    Posts
    8,543
    Reputation
    206
    Thanks
    5,531
    Doesn't work for BlackShot.

    / closed

Similar Threads

  1. [Source Code] Misc: all source code
    By GEHhgerhgerhgerhrhr in forum All Points Bulletin Reloaded Hacks
    Replies: 12
    Last Post: 03-12-2013, 02:32 PM
  2. [Release] [Source Code] Simple Game Base with Special FX
    By supercarz1991 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 23
    Last Post: 03-09-2011, 05:49 PM
  3. [Help] (Source Code Included)Game Crashes after I inject my hack
    By johnnydicamillo in forum WarRock Hack Source Code
    Replies: 4
    Last Post: 12-16-2010, 05:57 PM
  4. hey all you noobs free hack source codes here!!
    By cnttuchme in forum C++/C Programming
    Replies: 6
    Last Post: 10-22-2009, 05:52 PM
  5. ALL OF MY VISUAL BASIC SOURCE CODES!!
    By Pixie in forum Visual Basic Programming
    Replies: 5
    Last Post: 08-08-2009, 10:36 AM

Tags for this Thread