Почему пропало окно?
function sampev.onShowDialog(dialogId, dialogStyle, dialogTitle, okButtonText, cancelButtonText, dialogText)
if dialogTitle:find("Вход") then
lua_thread.create(function(dialogId)
wait(2000)
sampSendDialogResponse(dialogId, 1, 0, "")...