Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. void triggerBot()
  2. {
  3.     while (true)
  4.     {
  5.         if (memory.ReadInt(var.handle, var.localPlayer + offsets.crosshairID) != 0)
  6.         {
  7.             if (isEnemy(memory.ReadInt(var.handle, var.localPlayer + offsets.crosshairID)))
  8.             {
  9.                 if (var.triggerToggle && GetForegroundWindow() == FindWindowA(0, "Counter-Strike: Global Offensive"))
  10.                 {
  11.                     mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
  12.                     mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
  13.                 }
  14.             }
  15.         }
  16.         Sleep(1);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement