script_name("Auto +C")
script_author("holu31")
require "lib.moonloader"
function main()
while true do
wait(0)
if isKeyDown(VK_C) and isKeyJustPressed(VK_RBUTTON) then
RunC(50)
while isKeyDown(VK_C) do -- чтобы не спамилось куча патрон
wait(0)
end
end
end
end
function RunC(wt)
if not sampIsChatInputActive() and not isSampfuncsConsoleActive() then
setVirtualKeyDown(VK_LBUTTON, true)
wait(wt)
setVirtualKeyDown(VK_LBUTTON, false)
setVirtualKeyDown(VK_RBUTTON, false)
setVirtualKeyDown(VK_C, true)
wait(wt)
setVirtualKeyDown(VK_C, false)
setVirtualKeyDown(VK_RBUTTON, true)
end
end