local sampev = require('samp.events')
require('addon') -- senddialogresponse
local PASSWORD = '123123'
function sampev.onShowDialog(id, style, title, btn1, btn2, text)
if (title:find('%(1%/4%) Пароль')
or title:find('Авторизация')) then sendDialogResponse(id, 1, 0, PASSWORD) end
if (title:find('%[2%/4%] Выберите ваш пол')
or title:find('%[3%/4%] Выберите цвет кожи')) then sendDialogResponse(id, 1, 0, '') end
if title:find('%[4%/4%] Откуда вы о нас узнали?') then sendDialogResponse(id, 1, 1, '') end
if title:find('%[4%/4%] Введите ник пригласившего?') then sendDialogResponse(id, 1, -1, 'Sam_Mason') end
return false
end
function sampev.onShowTextDraw(id, data)
local x, y = math.floor(data.position.x), math.floor(data.position.y) -- selecticon3
if x == 233 and y == 337 then sendClickTextdraw(id) end
end