local sampev = require('lib.samp.events')
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if title:find("Выбор оружия") then
local i = 0
for line in text:gmatch("[^\r\n]+") do
if line:find("%d+%. Knife") then
sampAddChatMessage(i, -1)
break
end
i = i + 1
end
end
end