local MaxChars, Delay = 32, 750
addEventHandler('onSendRpc', function(id, bs)
if id == 101 then
local len = raknetBitStreamReadInt8(bs)
local text = raknetBitStreamReadString(bs, len)
if len > MaxChars then
lua_thread.create(function()
sampSendChat(text:sub(1, MaxChars - 1)..'-')
wait(Delay)
sampSendChat('-'..text:sub(MaxChars, #text))
end)
return false
end
end
end)