local sampev = require 'samp.events'
require('addon')
function sampev.onShowDialog(id, style, title, button1, button2, text)
if title:find("Выбор места спавна") then
local lineNumber = 0
for line in text:gmatch("[^\r\n]+") do
if line:find('ом №1000') then
sendDialogResponse(id, 1, lineNumber, "")
return false
end
lineNumber = lineNumber + 1
end
end
end