Advertisement
allen434343

Untitled

Jul 22nd, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. #include <Windows.h>
  2. #include <stdio.h>
  3. #include <tchar.h>
  4. #include <string>
  5. #include <iostream>
  6. #include <math.h>
  7. using namespace std;
  8.  
  9. void Crosshair(int iLength,int iWidth,DWORD dwColour);
  10. bool bDrawCrosshair=false;
  11.  
  12. int main()
  13. {
  14. const string USERNAME = "vipgamemerk";
  15. const string crosspink = "pinky";
  16. const string crossred = "red";
  17. const string crossgreen = "green";
  18. const string crossblue = "blue";
  19. const string crossorange = "orange";
  20. const string crossyellow = "yellow";
  21. string username;
  22. string crosshaircolor;
  23. SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0xf);
  24. cout<<"JasperXD Crosshair Pub v1.\n";
  25. cout<<"Credits : Superspinne and JasperXD.\nPlease Press (Enter) to Login.";
  26. MessageBox(NULL,L"Credits : Superspinne and JasperXD",L"JasperXD Crosshair v1",0);
  27. cin.get();
  28. system("cls");
  29. cout << "Enter VIP Pass : ";
  30. cin >> username;
  31. system("cls");
  32. cout<<"X----------Hack_Menu----------X\n[ESC] Quit\n[F2] Toggle Crosshair\n[F3] Crosshair Settings";
  33. //cin.get();
  34.  
  35. if(crosshaircolor == crosspink)
  36. {
  37. Crosshair(30,4,0xF907B0);
  38. }
  39. if(crosshaircolor == crossblue)
  40. {
  41. Crosshair(30,4,0x2A0DE6);
  42. }
  43. if(crosshaircolor == crossred)
  44. {
  45. Crosshair(30,4,0xE60D0D);
  46. }
  47. if(crosshaircolor == crossyellow)
  48. {
  49. Crosshair(30,4,0xEDF907);
  50. }
  51. if(crosshaircolor == crossorange)
  52. {
  53. Crosshair(30,4,0xF95C07);
  54. }
  55. if(crosshaircolor == crossgreen)
  56. {
  57. Crosshair(30,4,0x00FF00);
  58. }
  59.  
  60. if(username.length() < 11)
  61. {
  62. cout << "Username length must be atleast 11 characters long.";
  63. }
  64. if(username == USERNAME)
  65. {
  66. //Do Nothing - JasperXD
  67. }
  68. else
  69. {
  70. cout << "Invalid login details" << endl;
  71. return 0;
  72. }
  73.  
  74. while(!GetAsyncKeyState(VK_ESCAPE)){
  75. if(GetAsyncKeyState(VK_F2)&1){
  76. bDrawCrosshair=!bDrawCrosshair;
  77. }
  78. if(bDrawCrosshair){
  79. Crosshair(30,4,0x00FF00);
  80. }
  81. if(GetAsyncKeyState(VK_F3)&1){
  82. cout << "Enter Crosshair Color : ";
  83. cin >> crosshaircolor;
  84. }
  85. }
  86. }
  87.  
  88. void Crosshair(int iLength,int iThickness,DWORD dwColour)
  89. {
  90. HDC hDC=GetDC(NULL);
  91. int iSW,iSH;
  92. iSH=GetSystemMetrics(1)/2;
  93. iSW=GetSystemMetrics(0)/2;
  94. for(int i=-iThickness/2;i!=iThickness/2+1;++i){
  95. for(int j=0;j!=iLength;++j){
  96. SetPixel(hDC,iSW+i,iSH-iLength/2+j,dwColour);
  97. SetPixel(hDC,iSW-iLength/2+j,iSH+i,dwColour);
  98. }
  99. }
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement