Guest User

Untitled

a guest
Feb 24th, 2017
1,909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. #include <thread>
  2. #include <iostream>
  3. #include <string>
  4. #include <Windows.h>
  5.  
  6. using namespace std;
  7.  
  8. void SetColour(int ForgC);
  9. void Navigation();
  10. void Switch(int index);
  11. void UpdateMenu();
  12.  
  13. const int IAIM = 4;
  14. const int IAIM_SMOOTH = 3;
  15. const int IWAL = 2;
  16. const int ITRI = 1;
  17. const int IRAD = 0;
  18.  
  19. int Smoothness = 1;
  20. int M_Index = 0;
  21. int Changes = 0;
  22.  
  23. bool Aimbot = false;
  24. bool Wallhack = false;
  25. bool Triggerbot = false;
  26. bool Radar = false;
  27. bool updated = false;
  28.  
  29. string bools[2] = { "[OFF]", "[ON]" };
  30.  
  31. void SetColour(int ForgC) // got online
  32. {
  33. WORD wColor;
  34.  
  35. HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
  36. CONSOLE_SCREEN_BUFFER_INFO csbi;
  37.  
  38. //We use csbi for the wAttributes word.
  39. if (GetConsoleScreenBufferInfo(hStdOut, &csbi))
  40. {
  41. //Mask out all but the background attribute, and add in the forgournd color
  42. wColor = (csbi.wAttributes & 0xF0) + (ForgC & 0x0F);
  43. SetConsoleTextAttribute(hStdOut, wColor);
  44. }
  45. return;
  46. }
  47.  
  48. void Navigation()
  49. {
  50. //for (;;)
  51. //{
  52. for (int i = 2; i < 180; i++)
  53. {
  54. if (GetAsyncKeyState(i) & 0x8000)
  55. {
  56. switch (i)
  57. {
  58. case 38: // UP ARROW
  59. if (M_Index < 4)
  60. M_Index++;
  61. Changes++;
  62. updated = true;
  63. break;
  64. case 40: // DOWN ARROW
  65. if (M_Index > 0)
  66. M_Index--;
  67. Changes++;
  68. updated = true;
  69. break;
  70. case 37: // LEFT ARROW
  71. Switch(M_Index);
  72. Changes++;
  73. updated = true;
  74. break;
  75. case 39: // RIGHT ARROW
  76. Switch(M_Index);
  77. Changes++;
  78. updated = true;
  79. break;
  80. }
  81. Sleep(100);
  82. }
  83. }
  84. }
  85.  
  86. void Switch(int index)
  87. {
  88. if (index == IAIM)
  89. {
  90. Aimbot = !Aimbot;
  91. }
  92. if (index == IAIM_SMOOTH)
  93. {
  94. if (GetAsyncKeyState(37))
  95. {
  96. if (Smoothness > 1)
  97. {
  98. Smoothness--;
  99. }
  100. }
  101. else if (GetAsyncKeyState(39))
  102. {
  103. if (Smoothness < 5)
  104. {
  105. Smoothness++;
  106. }
  107. }
  108. }
  109. if (index == IWAL)
  110. {
  111. Wallhack = !Wallhack;
  112. }
  113. if (index == ITRI)
  114. {
  115. Triggerbot = !Triggerbot;
  116. }
  117. if (index == IRAD)
  118. {
  119. Radar = !Radar;
  120. }
  121. }
  122.  
  123. void UpdateMenu()
  124. {
  125. int temp = -1;
  126. //for (;;)
  127. //{
  128. if (temp != Changes)
  129. {
  130. temp = Changes;
  131. system("CLS");
  132. SetColour(15);
  133. cout << ">> Menu <<" << endl;
  134. cout << "________________________________" << endl << endl;
  135.  
  136. if (M_Index == IAIM)
  137. {
  138. SetColour(10);
  139. cout << " Aimbot\t\t=\t" << bools[Aimbot] << endl;
  140. }
  141. else
  142. {
  143. SetColour(15);
  144. cout << " Aimbot\t\t=\t" << bools[Aimbot] << endl;
  145. }
  146.  
  147. //--------------
  148.  
  149. if (M_Index == IAIM_SMOOTH)
  150. {
  151. SetColour(10);
  152. cout << " Smooth\t\t=\t[" << Smoothness << " ] " << endl;
  153. }
  154. else
  155. {
  156. SetColour(15);
  157. cout << " Smooth\t\t=\t[" << Smoothness << " ] " << endl;
  158. }
  159.  
  160. //--------------
  161.  
  162. if (M_Index == IWAL)
  163. {
  164. SetColour(10);
  165. cout << " Wallhack\t=\t" << bools[Wallhack] << endl;
  166. }
  167. else
  168. {
  169. SetColour(15);
  170. cout << " Wallhack\t=\t" << bools[Wallhack] << endl;
  171. }
  172.  
  173. //--------------
  174.  
  175. if (M_Index == ITRI)
  176. {
  177. SetColour(10);
  178. cout << " TriggerBot\t=\t" << bools[Triggerbot] << endl;
  179. }
  180. else
  181. {
  182. SetColour(15);
  183. cout << " TriggerBot\t=\t" << bools[Triggerbot] << endl;
  184. }
  185.  
  186. //--------------
  187.  
  188. if (M_Index == IRAD)
  189. {
  190. SetColour(10);
  191. cout << " Radar\t\t=\t" << bools[Radar] << endl;
  192. }
  193. else
  194. {
  195. SetColour(15);
  196. cout << " Radar\t\t=\t" << bools[Radar] << endl;
  197. }
  198. }
  199. //}
  200. }
  201.  
  202. int main()
  203. {
  204. UpdateMenu();
  205.  
  206. for (;;) {
  207. Navigation();
  208. if (updated == true)
  209. {
  210. updated = false;
  211. UpdateMenu();
  212. }
  213. Sleep(50);
  214. }
  215.  
  216. system("PAUSE");
  217. }
Add Comment
Please, Sign In to add comment