Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 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
  7. -- stuck(**) on give a ** ^^ ;)
  8. end
  9. if (event == "MOUSE_BUTTON_PRESSED" and arg == 3) then
  10. recoil = not recoil
  11. else if (event == "MOUSE_BUTTON_PRESSED" and arg == 3) then
  12. recoilhard = not recoilhard
  13. else if (event == "MOUSE_BUTTON_PRESSED" and arg == 3) then
  14. lol = not lol
  15. end
  16. if event == "MOUSE_BUTTON_PRESSED" and IsMouseButtonPressed(3) and arg == 1 and recoil then
  17. if recoil then
  18. repeat
  19. Sleep(5)
  20. MoveMouseRelative(2, 4)
  21. Sleep(5)
  22. MoveMouseRelative(-2,-4)
  23. -- VSS Unmodded
  24. until not IsMouseButtonPressed(1)
  25. end
  26. else if event == "MOUSE_BUTTON_PRESSED" and IsMouseButtonPressed(3) and arg == 1 and recoilhard then
  27. if recoilhard then
  28. repeat
  29. Sleep(10)
  30. MoveMouseRelative(0, 0)
  31. Sleep(10)
  32. MoveMouseRelative(-0, -0)
  33. -- General
  34. until not IsMouseButtonPressed(1)
  35. end
  36. else if event == "MOUSE_BUTTON_PRESSED" and arg == 1 and lol then
  37. if lol then
  38. repeat
  39. Sleep(10)
  40. MoveMouseRelative(0, 0)
  41. Sleep(10)
  42. MoveMouseRelative(-0, -0)
  43. -- General
  44. until not IsMouseButtonPressed(1)
  45. end
  46. end
  47. end
  48. end
  49. end
  50. end
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement