Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isPressed = false;
- isPressed2 = false;
- function OnEvent(event, arg)
- if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
- if (not isPressed) then
- PressKey("lshift")
- PressKey("w")
- isPressed = true;
- else
- ReleaseKey("lshift")
- ReleaseKey("w")
- isPressed = false;
- end
- end
- if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
- if (not isPressed2) then
- PressMouseButton(1)
- isPressed2 = true;
- else
- ReleaseMouseButton(1)
- isPressed2 = false;
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement