Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EnablePrimaryMouseButtonEvents(true)
- local recoil = not true;
- OutputLogMessage("PROFILE LOADED ")
- MoveTable = {
- {0,0},
- {3,31},
- {-11,32},
- {13,42},
- -- add the rest of your coordinates here
- }
- function OnEvent(event, arg)
- if event == "MOUSE_BUTTON_PRESSED" and arg == 1 then
- mb1_pressed = true
- elseif event == "MOUSE_BUTTON_RELEASED" and arg == 1 then
- mb1_pressed = false
- elseif event == "MOUSE_BUTTON_PRESSED" and arg == 2 then
- mb2_pressed = true
- elseif event == "MOUSE_BUTTON_RELEASED" and arg == 2 then
- mb2_pressed = false
- elseif event == "MOUSE_BUTTON_PRESSED" and arg == 6 and recoil then
- recoil = not true
- OutputLogMessage("NR-OFF ")
- elseif event == "MOUSE_BUTTON_PRESSED" and arg == 6 then
- recoil = not recoil
- OutputLogMessage("NR-ON ")
- end
- --
- if mb1_pressed and recoil then
- local i = 1
- repeat
- PressKey("M")
- Sleep(44)
- ReleaseKey("M")
- Sleep(44)
- MoveMouseRelative(MoveTable[i][1],MoveTable[i][2])
- i = i + 1
- if i > #MoveTable then
- i = 1
- end
- until not IsMouseButtonPressed(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement