require 'lib.moonloader'
require 'lib.sampfuncs'
local activate = false
local aTime = false
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('kazik', function()
lua_thread.create(function()
activate = not activate
sampAddChatMessage('[Казино бот для даунов]: '..(activate and 'Активирован, ждите 1 секунду' or 'Деактивирован'), - 1)
wait(1000)
aTime = not aTime
end)
end)
while true do
wait(0)
if activate == true and aTime == true then
setGameKeyState(32, 256)
wait(200)
setGameKeyState(32, 0)
wait(1000)
end
end
end