local hook = require 'lib.samp.events'
function main()
while not isSampAvailable() do wait(0) end
sampAddChatMessage('тест скрипта', 0xFAEE43)
while true do
wait(0)
end
end
function hook.onShowDialog(id, style, title, button1, button2, text)
if text:find('Подключился администратор') then
lua_thread.create(function()
wait(1000)
sampProcessChatInput('/q')
end)
end
end
function hook.onServerMessage(color, text)
if text:find('Подключился администратор') then
lua_thread.create(function()
wait(1000)
sampProcessChatInput('/q')
end)
end
end