- Joined
- Jun 10, 2014
- Messages
- 320
- Reaction score
- 36
- Points
- 28
Remove simple recoil. Only autorifle. АЕК-971, Famas, Abakan and e.t.c.
arg == 5 - это ваша кнопка, вкл/выкл. можно поменять на любую другую из вашего арсенала.
like it? ^^
PHP:
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %d\n", event, arg)
if (event == "PROFILE_ACTIVATED") then
EnablePrimaryMouseButtonEvents(true)
elseif event == "PROFILE_DEACTIVATED" then
ReleaseMouseButton(2) -- to prevent it from being
-- stuck(suck) on give a fuck ^^ ;)
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
recoil = not recoil
end
if event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil then
if recoil then
repeat
Sleep(20)
MoveMouseRelative(-0.5,2)
ReleaseMouseButton(2)
Sleep(20)
MoveMouseRelative(-0.5,2)
until not IsMouseButtonPressed(1)
end
end
end
like it? ^^