function sampev.onShowDialog(id, style, t, btn, btn2, text)
for line in text:gmatch("[^\n]+") do
if line:find("Объявление от %{......%}(%w+_%w+)") then
local idplay= line:match("Объявление от %{......%}(%w+_%w+)")
sampAddChatMessage(idplay, -1)
end...