Advertisement
Guest User

Untitled

a guest
Mar 20th, 2020
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function OnEvent(event, arg)
  2. if arg == 2 then -- checks if the event is the right mouse button status changing
  3. if event == "MOUSE_BUTTON_PRESSED" then -- makes sure it is being pressed
  4. while IsMouseButtonPressed(3) do -- 3 is the id of the right mouse button, loop will end when this is no longer true
  5. -- Do code
  6. Sleep(1000) -- Delay between code running in ms
  7. end
  8. end
  9. end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement