Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <thread>
- #include <iostream>
- #include <string>
- #include <Windows.h>
- using namespace std;
- void SetColour(int ForgC);
- void Navigation();
- void Switch(int index);
- void UpdateMenu();
- const int IAIM = 4;
- const int IAIM_SMOOTH = 3;
- const int IWAL = 2;
- const int ITRI = 1;
- const int IRAD = 0;
- int Smoothness = 1;
- int M_Index = 0;
- int Changes = 0;
- bool Aimbot = false;
- bool Wallhack = false;
- bool Triggerbot = false;
- bool Radar = false;
- bool updated = false;
- string bools[2] = { "[OFF]", "[ON]" };
- void SetColour(int ForgC) // got online
- {
- WORD wColor;
- HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
- CONSOLE_SCREEN_BUFFER_INFO csbi;
- //We use csbi for the wAttributes word.
- if (GetConsoleScreenBufferInfo(hStdOut, &csbi))
- {
- //Mask out all but the background attribute, and add in the forgournd color
- wColor = (csbi.wAttributes & 0xF0) + (ForgC & 0x0F);
- SetConsoleTextAttribute(hStdOut, wColor);
- }
- return;
- }
- void Navigation()
- {
- //for (;;)
- //{
- for (int i = 2; i < 180; i++)
- {
- if (GetAsyncKeyState(i) & 0x8000)
- {
- switch (i)
- {
- case 38: // UP ARROW
- if (M_Index < 4)
- M_Index++;
- Changes++;
- updated = true;
- break;
- case 40: // DOWN ARROW
- if (M_Index > 0)
- M_Index--;
- Changes++;
- updated = true;
- break;
- case 37: // LEFT ARROW
- Switch(M_Index);
- Changes++;
- updated = true;
- break;
- case 39: // RIGHT ARROW
- Switch(M_Index);
- Changes++;
- updated = true;
- break;
- }
- Sleep(100);
- }
- }
- }
- void Switch(int index)
- {
- if (index == IAIM)
- {
- Aimbot = !Aimbot;
- }
- if (index == IAIM_SMOOTH)
- {
- if (GetAsyncKeyState(37))
- {
- if (Smoothness > 1)
- {
- Smoothness--;
- }
- }
- else if (GetAsyncKeyState(39))
- {
- if (Smoothness < 5)
- {
- Smoothness++;
- }
- }
- }
- if (index == IWAL)
- {
- Wallhack = !Wallhack;
- }
- if (index == ITRI)
- {
- Triggerbot = !Triggerbot;
- }
- if (index == IRAD)
- {
- Radar = !Radar;
- }
- }
- void UpdateMenu()
- {
- int temp = -1;
- //for (;;)
- //{
- if (temp != Changes)
- {
- temp = Changes;
- system("CLS");
- SetColour(15);
- cout << ">> Menu <<" << endl;
- cout << "________________________________" << endl << endl;
- if (M_Index == IAIM)
- {
- SetColour(10);
- cout << " Aimbot\t\t=\t" << bools[Aimbot] << endl;
- }
- else
- {
- SetColour(15);
- cout << " Aimbot\t\t=\t" << bools[Aimbot] << endl;
- }
- //--------------
- if (M_Index == IAIM_SMOOTH)
- {
- SetColour(10);
- cout << " Smooth\t\t=\t[" << Smoothness << " ] " << endl;
- }
- else
- {
- SetColour(15);
- cout << " Smooth\t\t=\t[" << Smoothness << " ] " << endl;
- }
- //--------------
- if (M_Index == IWAL)
- {
- SetColour(10);
- cout << " Wallhack\t=\t" << bools[Wallhack] << endl;
- }
- else
- {
- SetColour(15);
- cout << " Wallhack\t=\t" << bools[Wallhack] << endl;
- }
- //--------------
- if (M_Index == ITRI)
- {
- SetColour(10);
- cout << " TriggerBot\t=\t" << bools[Triggerbot] << endl;
- }
- else
- {
- SetColour(15);
- cout << " TriggerBot\t=\t" << bools[Triggerbot] << endl;
- }
- //--------------
- if (M_Index == IRAD)
- {
- SetColour(10);
- cout << " Radar\t\t=\t" << bools[Radar] << endl;
- }
- else
- {
- SetColour(15);
- cout << " Radar\t\t=\t" << bools[Radar] << endl;
- }
- }
- //}
- }
- int main()
- {
- UpdateMenu();
- for (;;) {
- Navigation();
- if (updated == true)
- {
- updated = false;
- UpdateMenu();
- }
- Sleep(50);
- }
- system("PAUSE");
- }
Add Comment
Please, Sign In to add comment