Results 1 to 9 of 9
  1. #1
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical

    How to make an Crosshair

    FIRST:I ONLY COPIED THE WHOLEN THREAD BECAUSE IT WILL HELP SOME CROSSFIRE CODER.

    How To make You First CrossHair hack
    This Tutorial will show you how to make begginer , crosshair hack . The program am using is called Visual Studio C++ [2010] , you can download 30day trial .
    The SourceCode am using is not made by me , its made by some other guy am just using it to show you guys how to use SourceCodes [ if you know this dont post any crap comments ]
    thanks .
    { i will include the source code here ]
    This CrossHair only works in Window Mode
    Works for any Game :P
    Press Numpad0 to turn it on / off

    TUTORIAL IS MADE BY LoveKiss
    thanks to him
    [YOUTUBE]https://www.youtube.com/watch?v=7395ChgTKlw&feature=player_embedded[/YOUTUBE]
    Source Code :
    Code:
    #include <windows.h>
    #include <iostream>
    #include <math.h>
    using namespace std;
    
    bool crosshairon=false;
    HDC ragedc = NULL;
    int crosshairsize=0;
    int cx=0;
    int cy=0;
    
    void CrossThread(void)
    {
        while(1)
        {
            if(GetAsyncKeyState(VK_NUMPAD0)&1)
            {
                crosshairon=!crosshairon;
                ragedc = GetDC(HWND_DESKTOP);
                cx=GetSystemMetrics(SM_CXSCREEN)/2-((crosshairsize-1)/2);
                cy=GetSystemMetrics(SM_CYSCREEN)/2-((crosshairsize-1)/2);
            }
            Sleep(1);
        }
    }
    
    int main()
    {
        cout<<"Crosshair size in pixels:\n";
        cin>>crosshairsize;
        if(crosshairsize%2==0)
        {
            crosshairsize+=1; 
        }
        system("cls"); 
        cout<<"Press numpad0 to toggle the crosshair on and off\n";
        CreateThread(0,0,(LPTHREAD_START_ROUTINE)CrossThread,0,0,0);
        while(1)
        {
            if(crosshairon==true)
            {
                for(int i=0;i<crosshairsize;i++)
                {
                    SetPixel(ragedc, cx+i, cy+((crosshairsize-1)/2), RGB(255,0,0));
                    SetPixel(ragedc, cx+((crosshairsize-1)/2), cy+i, RGB(0,0,255));
                }
    
                if(crosshairon==false)
            
                for(int i=1;i<crosshairsize;i++)
                {
                    SetPixel(ragedc, cx+i, cy+((crosshairsize-1)/2), RGB(0,0,0));
                    SetPixel(ragedc, cx+((crosshairsize-1)/2), cy+i, RGB(0,0,0));
                }
            }
            Sleep(33);
        }
    }
    Thank LoveKiss - Not Me
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  2. #2
    markO1O8's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    433
    Reputation
    24
    Thanks
    104
    My Mood
    Amazed
    Video Broke Man :/ Nice Work TBH
    [CENTER]I'm back!

  3. #3
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical
    will fix it
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  4. #4
    FileCorrupt's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    658
    Reputation
    -2
    Thanks
    30
    My Mood
    Amazed
    Quote Originally Posted by FlaVour View Post
    will fix it
    Maybe Not After Looking At His Tag...

  5. #5
    firefox800's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    294
    Reputation
    10
    Thanks
    2,136
    My Mood
    Fine
    Quote Originally Posted by FlaVour View Post
    FIRST:I ONLY COPIED THE WHOLEN THREAD BECAUSE IT WILL HELP SOME CROSSFIRE CODER.

    How To make You First CrossHair hack
    This Tutorial will show you how to make begginer , crosshair hack . The program am using is called Visual Studio C++ [2010] , you can download 30day trial .
    The SourceCode am using is not made by me , its made by some other guy am just using it to show you guys how to use SourceCodes [ if you know this dont post any crap comments ]
    thanks .
    { i will include the source code here ]
    This CrossHair only works in Window Mode
    Works for any Game :P
    Press Numpad0 to turn it on / off

    TUTORIAL IS MADE BY LoveKiss
    thanks to him
    [YOUTUBE]https://www.youtube.com/watch?v=7395ChgTKlw&feature=player_embedded[/YOUTUBE]
    Source Code :
    Code:
    #include <windows.h>
    #include <iostream>
    #include <math.h>
    using namespace std;
    
    bool crosshairon=false;
    HDC ragedc = NULL;
    int crosshairsize=0;
    int cx=0;
    int cy=0;
    
    void CrossThread(void)
    {
        while(1)
        {
            if(GetAsyncKeyState(VK_NUMPAD0)&1)
            {
                crosshairon=!crosshairon;
                ragedc = GetDC(HWND_DESKTOP);
                cx=GetSystemMetrics(SM_CXSCREEN)/2-((crosshairsize-1)/2);
                cy=GetSystemMetrics(SM_CYSCREEN)/2-((crosshairsize-1)/2);
            }
            Sleep(1);
        }
    }
    
    int main()
    {
        cout<<"Crosshair size in pixels:\n";
        cin>>crosshairsize;
        if(crosshairsize%2==0)
        {
            crosshairsize+=1; 
        }
        system("cls"); 
        cout<<"Press numpad0 to toggle the crosshair on and off\n";
        CreateThread(0,0,(LPTHREAD_START_ROUTINE)CrossThread,0,0,0);
        while(1)
        {
            if(crosshairon==true)
            {
                for(int i=0;i<crosshairsize;i++)
                {
                    SetPixel(ragedc, cx+i, cy+((crosshairsize-1)/2), RGB(255,0,0));
                    SetPixel(ragedc, cx+((crosshairsize-1)/2), cy+i, RGB(0,0,255));
                }
    
                if(crosshairon==false)
            
                for(int i=1;i<crosshairsize;i++)
                {
                    SetPixel(ragedc, cx+i, cy+((crosshairsize-1)/2), RGB(0,0,0));
                    SetPixel(ragedc, cx+((crosshairsize-1)/2), cy+i, RGB(0,0,0));
                }
            }
            Sleep(33);
        }
    }
    Thank LoveKiss - Not Me
    Crosshair will work on any version of OS thnks for this...

  6. #6
    Fly3r's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Not telling.
    Posts
    720
    Reputation
    18
    Thanks
    265
    My Mood
    Paranoid
    Well .. U should define on which project to make it..
    I mean Dll or Windows Application or Console Application e.t.c
    Joined MPGH: 07/08/09


    i used to tell arrow to the knee jokes then i died due to blood loss from takeing tomany arrows to the knee at once
    A network problem caused by you? What did you do? Trip over the cable?




  7. #7
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,010
    My Mood
    Amused
    Quote Originally Posted by Fly3r View Post
    Well .. U should define on which project to make it..
    I mean Dll or Windows Application or Console Application e.t.c
    Everbody knows that you have to make in application and not in dll
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  8. #8
    Fly3r's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Not telling.
    Posts
    720
    Reputation
    18
    Thanks
    265
    My Mood
    Paranoid
    Well i know.. but just to be more accurate ..
    Anyway I use Dev C++ and it doesnt Work there .. maybe only for VS C++
    Joined MPGH: 07/08/09


    i used to tell arrow to the knee jokes then i died due to blood loss from takeing tomany arrows to the knee at once
    A network problem caused by you? What did you do? Trip over the cable?




  9. #9
    Osama_Farooq's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Gotham City
    Posts
    2,138
    Reputation
    317
    Thanks
    661
    My Mood
    Angelic
    youtube is ur friend