Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <stdio.h>
- #include <tchar.h>
- #include <string>
- #include <iostream>
- #include <math.h>
- using namespace std;
- void Crosshair(int iLength,int iWidth,DWORD dwColour);
- bool bDrawCrosshair=false;
- int main()
- {
- const string USERNAME = "vipgamemerk";
- const string crosspink = "pinky";
- const string crossred = "red";
- const string crossgreen = "green";
- const string crossblue = "blue";
- const string crossorange = "orange";
- const string crossyellow = "yellow";
- string username;
- string crosshaircolor;
- SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0xf);
- cout<<"JasperXD Crosshair Pub v1.\n";
- cout<<"Credits : Superspinne and JasperXD.\nPlease Press (Enter) to Login.";
- MessageBox(NULL,L"Credits : Superspinne and JasperXD",L"JasperXD Crosshair v1",0);
- cin.get();
- system("cls");
- cout << "Enter VIP Pass : ";
- cin >> username;
- system("cls");
- cout<<"X----------Hack_Menu----------X\n[ESC] Quit\n[F2] Toggle Crosshair\n[F3] Crosshair Settings";
- //cin.get();
- if(crosshaircolor == crosspink)
- {
- Crosshair(30,4,0xF907B0);
- }
- if(crosshaircolor == crossblue)
- {
- Crosshair(30,4,0x2A0DE6);
- }
- if(crosshaircolor == crossred)
- {
- Crosshair(30,4,0xE60D0D);
- }
- if(crosshaircolor == crossyellow)
- {
- Crosshair(30,4,0xEDF907);
- }
- if(crosshaircolor == crossorange)
- {
- Crosshair(30,4,0xF95C07);
- }
- if(crosshaircolor == crossgreen)
- {
- Crosshair(30,4,0x00FF00);
- }
- if(username.length() < 11)
- {
- cout << "Username length must be atleast 11 characters long.";
- }
- if(username == USERNAME)
- {
- //Do Nothing - JasperXD
- }
- else
- {
- cout << "Invalid login details" << endl;
- return 0;
- }
- while(!GetAsyncKeyState(VK_ESCAPE)){
- if(GetAsyncKeyState(VK_F2)&1){
- bDrawCrosshair=!bDrawCrosshair;
- }
- if(bDrawCrosshair){
- Crosshair(30,4,0x00FF00);
- }
- if(GetAsyncKeyState(VK_F3)&1){
- cout << "Enter Crosshair Color : ";
- cin >> crosshaircolor;
- }
- }
- }
- void Crosshair(int iLength,int iThickness,DWORD dwColour)
- {
- HDC hDC=GetDC(NULL);
- int iSW,iSH;
- iSH=GetSystemMetrics(1)/2;
- iSW=GetSystemMetrics(0)/2;
- for(int i=-iThickness/2;i!=iThickness/2+1;++i){
- for(int j=0;j!=iLength;++j){
- SetPixel(hDC,iSW+i,iSH-iLength/2+j,dwColour);
- SetPixel(hDC,iSW-iLength/2+j,iSH+i,dwColour);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement