Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void triggerBot()
- {
- while (true)
- {
- if (memory.ReadInt(var.handle, var.localPlayer + offsets.crosshairID) != 0)
- {
- if (isEnemy(memory.ReadInt(var.handle, var.localPlayer + offsets.crosshairID)))
- {
- if (var.triggerToggle && GetForegroundWindow() == FindWindowA(0, "Counter-Strike: Global Offensive"))
- {
- mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
- mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
- }
- }
- }
- Sleep(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement