28.02.2014, 06:25
How to put different colors in text, so like, a bot system, This will be red: [Bot] and the rest the normal color?
new RandomMSG[][] =
{
"Random Message 1",
"Random Message 2",
"Random Message 3"
};
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}
SetTimer("SendMSG", 60000, true);
// 60000ms = 60 seconds = 1 minute
Change FFFFFF to whatever hex colour you want to be used.
"{FFFFFF}BOT:{FFFFFF}Random Message 1",
That's not what they asked for. They want to just change the text color, that's it. Using "format" is one way (the easiest IMO).
|
How to put different colors in text, so like, a bot system, This will be red: [Bot] and the rest the normal color? |
SendClientMessage(playerid, -1,"{FFFF00}SERVER:{FFFFFF}This will be white