Example:
doPlayerSendTextMessage(player1.uid,22,"+500 HP!")
where doPlayerSendTextMessage(player1.uid,22,"+500 HP!") is the color of the text. In this case white, changing it to 21 will give orange text.
You can find the colors and what reference number they have in data/lib/compat.lua