Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. function OnEvent(event, arg)
  2. OutputLogMessage("event = %s, arg = %d\n", event, arg)
  3. if (event == "PROFILE_ACTIVATED") then
  4. EnablePrimaryMouseButtonEvents(true)
  5. elseif event == "PROFILE_DEACTIVATED" then
  6. ReleaseMouseButton(2) -- to prevent it from being stuck on
  7. end
  8. if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
  9. recoil = not recoil
  10. spot = not spot
  11. end
  12. if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
  13. if recoil then
  14. repeat
  15. --Sleep(35)
  16. Sleep(8)
  17. MoveMouseRelative(0, 3)
  18.  
  19. until not IsMouseButtonPressed(1)
  20. end
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement