:
require('samp.events').onShowDialog = function(dialogId, style, title, button1, button2, text)
sampAddChatMessage(string.format('Диалог %d: %s - %s / %s', dialogId, title, button1, button2), -1)
if text:find('Тренировка скилла') or title:find('Тренировка скилла') then...