Code:
local recoil = false
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 == 6) 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(-7,15)
Sleep(14)
MoveMouseRelative(7,-15)
Sleep(14)
until not IsMouseButtonPressed(1) or not IsMouseButtonPressed(3)
end
end
end
bind mouse6 / right click and fire
not very nice smg11/12/b9