Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    mhemmad456's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    28

    Post How to Make Cross Hair in C++.. Come Fast

    Hi
    Today i want to Learn you How To Make A Cross Hair

    Steps:

    1: First Download Visual Studio
    2: Open C++ Project and Chose Conolse
    3:Type This Code:
    Code:
    //Www.MA-Programs.Com - Cross Hair
    // By Mhemmad
    #include "stadfx.h"
    #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<<"Www.MA-Programs.Com _ Crosshair size in pixels:\n";
    	cin>>crosshairsize;
    	if(crosshairsize%2==0) //check if its even
    	{
    		crosshairsize+=1; //if it is add 1
    	}
    	system("cls"); // clear the console :)
    	cout<<"Www.MA-Programs.Com _ 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(255,0,0));
    			}
    		}
    		Sleep(1);
    	}
    }

    4: Save you Project
    5: Go to Project Folder then Go To Debug or Realase And Copy The File.exe
    6: This is the Cross Hair open It and type Cross Hair Size Then Click Enter And Click NumPad0 to Turn it On/Off

    For more Help
    Add me in Skype : The.H-cker
    My E-mail: Mhemmad01@gmail.com
    Click Thanks if i Help you

  2. The Following User Says Thank You to mhemmad456 For This Useful Post:

    rHEARTHAErthjethj (06-09-2013)

  3. #2
    SecureCodes's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    SecureCodes
    Posts
    85
    Reputation
    26
    Thanks
    53
    My Mood
    Shocked
    cheers pawl
    Quote Originally Posted by mhemmad456 View Post
    Hi
    Today i want to Learn you How To Make A Cross Hair

    Steps:

    1: First Download Visual Studio
    2: Open C++ Project and Chose Conolse
    3:Type This Code:



    4: Save you Project
    5: Go to Project Folder then Go To Debug or Realase And Copy The File.exe
    6: This is the Cross Hair open It and type Cross Hair Size Then Click Enter And Click NumPad0 to Turn it On/Off

    For more Help
    Add me in Skype : The.H-cker
    My E-mail: Mhemmad01@gmail.com
    Click Thanks if i Help you

  4. #3
    geonabro's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Thank you a lot for this tip or mini tutorial!

  5. #4
    Maroon5.'s Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    "C:\Program Files (x86)\Maroon5\One More Night.mp4"
    Posts
    661
    Reputation
    47
    Thanks
    879
    My Mood
    Devilish
    Dude you are Missing Stadfx.h . The file Directory .
    For the newbies Here the Stadfx.h Code
    Code:
    #pragma once
    #define WIN32_LEAN_AND_MEAN
    #define WIN32_EXTRA_LEAN
    #include <windows.h>
    #include <time.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <d3d9.h>
    #include <d3dx9.h>
    #pragma message("Thanks To Maroon5.")
    TuT :
    Create a new Headers File (.h)
    rename it as "Stadfx.h"
    Paste These code
    Done
    Last edited by Maroon5.; 06-08-2013 at 08:34 PM.

  6. The Following User Says Thank You to Maroon5. For This Useful Post:

    -User2- (06-12-2013)

  7. #5
    -User2-'s Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Maroon5. View Post
    Dude you are Missing Stadfx.h . The file Directory .
    For the newbies Here the Stadfx.h Code
    Code:
    #pragma once
    #define WIN32_LEAN_AND_MEAN
    #define WIN32_EXTRA_LEAN
    #include <windows.h>
    #include <time.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <d3d9.h>
    #include <d3dx9.h>
    #pragma message("Thanks To Maroon5.")
    TuT :
    Create a new Headers File (.h)
    rename it as "Stadfx.h"
    Paste These code
    Done
    Thanks

  8. #6
    fudgebucket21's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    8
    My Mood
    Bored
    Worked fine, thanks!

  9. #7
    kiko9090's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    0
    how to use it?

  10. #8
    Sinamatic's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    United States
    Posts
    46
    Reputation
    10
    Thanks
    1
    Teach me how to use it please

  11. #9
    shadow4881208's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    My Mood
    Tired
    so what is the code all together??

  12. #10
    rexiss's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    DonkeyLand
    Posts
    2
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic
    Quote Originally Posted by shadow4881208 View Post
    so what is the code all together??
    There is no ''code all together''. We simply open C++ and type the code in to create a DLL. After that we insert the DLL. into an injector and inject it to the w.e process you want.

  13. #11
    odiozo13's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    HELLO friend, and to make a tapper with visual basic or visual studio? help

  14. #12
    ProHacking's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    OOOOOO
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Stressed
    Quote Originally Posted by odiozo13 View Post
    HELLO friend, and to make a tapper with visual basic or visual studio? help
    Tapper is not a program

  15. #13
    mhemmad789's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    0
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by odiozo13 View Post
    HELLO friend, and to make a tapper with visual basic or visual studio? help
    I Will Post Later how to make tapper in Visual Basic

  16. #14
    AmrTheCrafter's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    Egypt
    Posts
    66
    Reputation
    10
    Thanks
    45
    My Mood
    Amazed
    Quote Originally Posted by ProHacking View Post
    Tapper is not a program
    a tapper can be a program aslo

  17. #15
    Elson Fong's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    Los Angeles, California, United States
    Posts
    1
    Reputation
    10
    Thanks
    0
    My Mood
    Amazed
    How to Do it ?

Page 1 of 2 12 LastLast

Similar Threads

  1. How to Make money with Google Images $$$ [Easy][Fast]
    By `Rejected in forum eBooks For Sale
    Replies: 8
    Last Post: 06-02-2013, 08:48 AM
  2. [Request] Is it Possible to make Cross Hair Mods?
    By -Lunar_ in forum Combat Arms Mod Request
    Replies: 2
    Last Post: 02-27-2011, 08:53 PM
  3. How to make cross game mod animations
    By Fimbulvetr in forum Combat Arms Mod Tutorials
    Replies: 76
    Last Post: 11-28-2010, 05:03 PM
  4. [Discussion] Do you want me to make Cross hair Pack
    By ĎÁŗҚ ĉҰρҢềŔ in forum WarRock Discussions
    Replies: 21
    Last Post: 11-08-2009, 05:37 PM