act = 0
on = false
require("lib.moonloader")
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("full", cmd)
sampAddChatMessage("{FF5656}[AvtoFama]:{FFFFFF} Загружен!", -1)
sampAddChatMessage("{FF5656}[Autor]:{FFFFFF} Toxic_Hannah")
printStringNow("Captez TOP", 7000)
while true do
wait(0)
if isKeyJustPressed(VK_Z) and not isSampfuncsConsoleActive() and not sampIsDialogActive() and not sampIsChatInputActive() then
setVirtualKeyDown(18, true)
wait(20)
setVirtualKeyDown(18, false)
on = true
end
end
end
require("lib.samp.events").onShowDialog = function (id, style, title, button1, button2, text)
if act == 1 and on == true then
if id == 239 then
sampSendDialogResponse(239, 1, 5)
return false
end
if id == 623 then
lua_thread.create(function ()
sampSendDialogResponse(623, 1, _, 5)
wait(0)
sampSendChat("/fmenu")
end)
return false
end
if id == 183 then
sampSendDialogResponse(183, 1, 4)
return false
end
if id == 186 then
sampSendDialogResponse(186, 1, 5)
return false
end
if on == true then
on = false
end
if id == 8466 then
sampSendDialogResponse(8466, 1, _, 5)
end
end
end
function cmd()
if act == 0 then
act = 1
printStringNow("On", 3000)
else
act = 0
printStringNow("Off", 3000)
end
end