Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local recoil = true
- local rapidfire = false
- function OnEvent(event, arg)
- OutputLogMessage("event = %s, arg = %s\n", event, arg)
- if (event == "PROFILE_ACTIVATED") then
- EnablePrimaryMouseButtonEvents(true)
- end
- if (event == "MOUSE_BUTTON_PRESSED" and arg == 9) then
- recoil = not recoil
- if (recoil == true) then
- OutputLogMessage("Recoil is On\n")
- else
- OutputLogMessage("Recoil is Off\n")
- end
- end
- if (event == "MOUSE_BUTTON_PRESSED" and arg ==1 and recoil == true and rapidfire == false) then
- if IsMouseButtonPressed(1) and IsMouseButtonPressed(3)then
- repeat
- MoveMouseRelative(-0,4)
- Sleep(5)
- MoveMouseRelative(0,4)
- Sleep(5)
- until not IsMouseButtonPressed(1) or not IsMouseButtonPressed(3)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement