local q = require('lib.samp.events')
local skip = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('skip', function()
skip = not skip
sampfuncsLog(skip and "включен" or "выключен")
end)
wait(-1)
end
function q.onShowDialog(id, style, title, button1, button2, text)
if skip then
if id == 1333 then
return false
end
if id == 1332 then
return false
end
if text:find("В этом месте запрещено") then
return false
end
end
end