Вообщем-то, есть у меня такой код:
function ev.onShowDialog(id, st, tit, b1, b2, tx)
count = 0
if actions == 3 and not sampIsDialogActive() then
for line in tx:gmatch("[^\n\r]+") do
if line:find("Тяпка") then
sampSendDialogResponse(id, 1, count, nil)...