function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if dialogId == 8252 and status then
sampSendDialogResponse(dialogId, 1, nil, nil)
end
end
sampSendDialogResponse(int id, int button, int listitem, zstring input)
int id - id диалога
int button - id...