Можно ли изменить с чата на репорт

Broukmen

Участник
Автор темы
49
2
Версия MoonLoader
.026-beta
Можно ли этот скрипт, изменить на репорт? Чтобы он не в чат писал, а в окно репорта ответ при нажатии - https://www.blast.hk/threads/88604/
Так как быстрые ответы в репорт в админ-тулс - платная функция.
 

SomaGnoma

Известный
442
152

Broukmen

Участник
Автор темы
49
2
меняешь sampSendChat(четотам) на
Lua:
sampSendDialogResponse(228, nil, nil, четотам) -- id айди диалога, четотам это то что будет писать
ну вот ид диалога 1334

Как в этом коде заменить?) Ну не пойму и всо..
КОд:
if imguicheck then
    function play_bind(num)
        lua_thread.create(function()
            if num ~= -1 then
                for bp in mainIni.Bind_text[num]:gmatch('[^~]+') do
                    if AutoB.v then
                        sampSendChat(u8:decode('/b '..tostring(bp)))
                        wait(mainIni.Bind_delay[num])
                    else
                        sampSendChat(u8:decode(tostring(bp)))
                        wait(mainIni.Bind_delay[num])
                    end
                end
                num = -1
            end
        end)
    end
end
 

qdIbp

Автор темы
Проверенный
1,390
1,146
Lua:
if imguicheck then
    function play_bind(num)
        lua_thread.create(function()
            if num ~= -1 then
                for bp in mainIni.Bind_text[num]:gmatch('[^~]+') do
                    if AutoB.v then
                        sampSendChat(u8:decode('/b '..tostring(bp)))
                        wait(mainIni.Bind_delay[num])
                    else
                        sampSendDialogResponse(1334, nil, nil, (u8:decode(tostring(bp)))) --заменено ток здесь потому что выше общение через /b как я понял
                        wait(mainIni.Bind_delay[num])
                    end
                end
                num = -1
            end
        end)
    end