Advertisement
Guest User

POUR SULIANAS

a guest
Nov 18th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 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 == 5) 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(10)
  16. Sleep(10)
  17. MoveMouseRelative(1, 3)
  18. Sleep(10)
  19. MoveMouseRelative(-1, 3)
  20. Sleep(10)
  21. MoveMouseRelative(1, 4)
  22. Sleep(8)
  23. MoveMouseRelative(-1, 3)
  24. until not IsMouseButtonPressed(1)
  25. end
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement