local sampev = require "lib.samp.events"
local font = renderCreateFont("Tahoma", 8, 5)
local activate = false
function main()
while not isSampAvailable() do wait(100) end
while true do wait(0)
if activate then
renderFontDrawText(font, "В чате появился текст", 40, 450, -1)
end
end
end
function sampev.onServerMessage(color, text)
if text:find("Текст в чате") then
activate = true
end
end