сообщения в чате

Savchik Blazer

Но я, мечту свою лелея...
Автор темы
Проверенный
667
294
Версия MoonLoader
.026-beta
как ловить все сообщения в чате, не только серверные
 
Решение

chapo

tg/inst: @moujeek
Всефорумный модератор
9,097
12,127
 

Savchik Blazer

Но я, мечту свою лелея...
Автор темы
Проверенный
667
294
черный экран и краш
Lua:
local render = require 'lib.render'
local hook = require("hooks")
local myrender = render.create()
function main()
    sampChatHook = hook.jmp.new("void(__thiscall *)(uintptr_t this, uint32_t type, const char* text, const char* prefix, uint32_t color, uint32_t pcolor)", sampChatHook, getModuleHandle('samp.dll') + 0x64010)
    while true do
        wait(0)
    end
end
function sampChatHook(this, type, text, prefix, color, pcolor)
    sampChatHook(this, type, text, prefix, color, pcolor)
        rendtwo.text('' ..prefix.. ' ' ..text.. '')
end
 

chapo

tg/inst: @moujeek
Всефорумный модератор
9,097
12,127
черный экран и краш
Lua:
local render = require 'lib.render'
local hook = require("hooks")
local myrender = render.create()
function main()
    sampChatHook = hook.jmp.new("void(__thiscall *)(uintptr_t this, uint32_t type, const char* text, const char* prefix, uint32_t color, uint32_t pcolor)", sampChatHook, getModuleHandle('samp.dll') + 0x64010)
    while true do
        wait(0)
    end
end
function sampChatHook(this, type, text, prefix, color, pcolor)
    sampChatHook(this, type, text, prefix, color, pcolor)
        rendtwo.text('' ..prefix.. ' ' ..text.. '')
end
1. сука нахуя вы это блять делаете, бесит пиздец
1653675436760.png

2. не text, а ffi.string(text)
 
  • Нравится
Реакции: Hideme Flow и paulohardy

ARMOR

Waitin' on another black summer to end
Модератор
5,045
7,189
Все заработало. Кстати не поделишься ли флудером, который в чат всякую херню пишет?
а, ну всё равно это обычный sampAddChatMessage. Написать подобное отнимет минуту времени.
cb1679a322a9069e4addc73a8ffb2e95.jpg