require "lib.moonloader"
local mask = false
local vk = require "vkeys"
local ev = require 'lib.samp.events'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(0)
if isKeyJustPressed(0x39) and not sampIsCursorActive() then
if not ms then
if mask == true then
ms = true
lua_thread.create(function()
wait(500)
sampSendChat("/me отывоыфвыфв")
wait(1200)
sampSendChat('/mask')
ms = false
end)
else
sampAddChatMessage("нет маски", -1)
end
end
end
end
end
function ev.onServerMessage(color, text)
if text:find("[Ошибка] {FFFFFF}У вас нет маски!") then
mask = false
end
end