- Версия MoonLoader
- Другое
Lua:
function sampev.onShowDialog(dialogId,s,t,b1,b2,text)
for line in text:gmatch("[^\n]+") do
if line:find('%{......%}/(%w+) %{......%}- Просмотреть команды') then
cmd = line:match('%{......%}/(%w+) %{......%}- Просмотреть команды')
sampAddChatMessage("да /"..cmd, -1)
end
end
end
в чем проблема?