I got a request to make it for dod and since I couldn't find any info about it on the internet, I made my own research and here are the results:
It works in a different way than in cs, and you can only use 1 color in 1 line. You can display msg in 1 of 5 colors:
As you can see on the image, non-default color chat lines have 62 characters length limit.
EDIT:
Name of player who sent the message is a terminator for color and the message must contain it or it will use default color. Team of player sending message defines color. First cell of array storing message must be set to 2
PHP Code:
new msg[128]
format(msg, 127, "%c ....", 2, ...)
I edited default adminchat to add colors to it, and created another plugin (dod_color_chat.sma) that will always display name of admin using say or say_team in an unique color. Check them out.