function sampev.onShowDialog(dialogId, dialogStyle, dialogTitle, okButtonText, cancelButtonText, dialogText)
if dialogId == 10411 --[[укажи ид диалога]] and close then
sampSendDialogResponse(10411,1,10, nil)
sampCloseCurrentDialogWithButton(0)
close = false
return false...