if dialogId == 25526 and title:find("{BFBBBA}Выбор места спавна") then
newTask(function()
wait(500)
local text_spawn = sampGetListboxItemByText(text, "Дом №1532", false)
sendDialogResponse(dialogId, 1, text_spawn, "")
sendDialogResponse(dialogId, 0, 0, "")
return false
end)
end