I wanted to do for RP team !roll,but faced one problem
- Prefix UTF-8 should be written at the beginning text
- When the prefix is supplied,you cannot add plain text
I wanted to connect the phrase 'Кинул кубик,выпало'
with the player's name, and number.
But it turned Cyrillic
- 0oa UTF-8:Xd23/54353/gdgsgd/dgdsrga and bla bla bla
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
function rand(id) local ply = Player.GetPlayerID(id) local x,y = ply:GetPos() local str = "\xD0\x9A\xD0\xB8\xD0\xBD\xD1\x83\xD0\xBB\x20\xD0\xBA\xD1\x83\xD0\xB1\xD0\xB8\xD0\xBA\x2C\xD0\xB2\xD1\x8B\xD0\xBF\xD0\xB0\xD0\xBB\xD0\xBE\x20\xD1\x87\xD0\xB8\xD1\x81\xD0\xBB\xD0\xBE" parse('effect "smoke" ' .. x .. " " .. y .. " " .. " 1 1 255 255 255") msg(" - " .. ply:Name() .. " : UTF-8:" .. str .. "" .. math.random(0,10)) end