Results 1 to 7 of 7
  1. #1
    Rasta's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Russian Federation
    Posts
    1,374
    Reputation
    122
    Thanks
    1,174

    How to make your first CrossHair

    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 ME


    VIDEO :
    [YOUTUBE]7395ChgTKlw[/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);
        }
    }

  2. The Following 4 Users Say Thank You to Rasta For This Useful Post:

    combatnub (08-14-2011),thepbmaster (07-14-2011),WanQuiSheR (03-26-2011),Xmagz (05-08-2011)

  3. #2
    .Aeon's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    132
    Reputation
    10
    Thanks
    44
    I like it but isn't it just plainly feeding? o.o Not saying its bad but it would be better if you explained, like, what is the purpose of certain lines that might seem unknown to beginners. The way you did it seemed more appropriate to put the thread type as Source Code rather than Tutorial. Good job anyway.



    --------------------------------------
    Quote Originally Posted by formage
    obama stop giving speeches and CHANGE!!!
    Quote Originally Posted by D3Dh0oker View Post
    i code faster than i prostitute

  4. #3
    Rasta's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Russian Federation
    Posts
    1,374
    Reputation
    122
    Thanks
    1,174
    well am a begginer aswell , i only know about 60% of lines mean , and my friend helped me !!!

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

    WanQuiSheR (03-26-2011)

  6. #4
    Moothew =^_^='s Avatar
    Join Date
    Oct 2010
    Gender
    female
    Posts
    148
    Reputation
    10
    Thanks
    56
    My Mood
    Amazed
    nice copy paste & this should go c++ section not here.

  7. #5
    Rasta's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Russian Federation
    Posts
    1,374
    Reputation
    122
    Thanks
    1,174
    Quote Originally Posted by Moothew =^_^= View Post
    nice copy paste & this should go c++ section not here.

    Your stupid right ??? , its a fk source code for a CrossHair it should be in SourceCode section !!!

  8. The Following User Says Thank You to Rasta For This Useful Post:

    WanQuiSheR (03-26-2011)

  9. #6
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224


    /tooshort

  10. #7
    Xmagz's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Unknown Location
    Posts
    80
    Reputation
    10
    Thanks
    14
    My Mood
    Inspired
    Video Got deleted..
    #'When you feel like giving up is when your close to your breakthrough'#!
    Contact Me!

    Code:
    2015 AND AM BACK WITH MORE FORCE!!