Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Crosshair Function


    NeoIII
     Share

    Recommended Posts

    void DrawCross( int AA, int BB, int CC, int x_achse, int y_achse, int size )
    {
    HWND handle;	
    HDC dc;
    COLORREF color;
    int retval=0;
    int center_x;
    int center_y;
    int halfheight;
    int halfwidth;
    // Check for valid Handle
    handle = FindWindow( GAME_NAME, 0 );
    // Set the crosshair color
    color = RGB(AA,BB,CC);
    // Set the crosshair size
    halfheight = size;
    halfwidth = size;
    center_x = x_achse / 2;
    center_y = y_achse / 2;
    /*
    for(;;) {
    }
    */
    dc = GetDC(0);
    	for(int x=center_x-halfwidth; x<center_x+halfwidth; x++) {			
    		retval = ::SetPixelV(dc,x,center_y,color);			
    	}
    
    	for(int y=center_y-halfheight; y<center_y+halfheight; y++) {
    		retval = ::SetPixelV(dc,center_x,y,color);
    	}
    	ReleaseDC(handle,dc);
    }

     

    How To Use:

    if((GetAsyncKeyState(VK_F1)&1) == 1) { DrawCross = !DrawCross; }
    
    if( DrawCross ) { DrawCross( 0, 0, 255, 1024, 768, 15 ); }

    Link to comment
    Share on other sites

    • 3 weeks later...

    How would i change the color? is there a Library with all the color Vars listed or would i just enter my own hexadecimal values? I would like my cross hair to be Lime green with the red ###### in the midddle still (laser mimic) but the cross hair itself like i said i would like it to be lime green.

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...