local sampev = require('samp.events')
require('addon')
local pass = '' -- your password
function sampev.onShowDialog(id, style, title, button1, button2, text)
if text:find('Добро пожаловать на сервер') then
sendDialogResponse(id, 1, 0, password)
return false
end
end