10.06.2013, 17:45
So, I have a command which issues a server restart, It says "% has issued a server restart" however I would like "Server Restart" to be a different color, and the color of the string is Lightred, so How can I do so?
//Example:
SendClientMessage( playerid, -1, "{00FF00}Server {0000FF}Restart");
//0000FF is red
//00FF00 is lime
format(string, sizeof(string), "AdmCmd: %s has issued a Server Restart, it will occur in 30 seconds. Be sure to /park your vehicle(s)!", RPN(playerid)); SendClientMessageToAll(COLOR_LIGHTRED, string);
format(string, sizeof(string), "AdmCmd: %s {FFFFFF}has {FF0000}issued a Server Restart, {00FF00}it will occur in 30 seconds. Be sure to /park your vehicle(s)!", RPN(playerid));
SendClientMessageToAll(COLOR_LIGHTRED, string);