How to add a color to this
#1

How to make the string "Server Update" orange?

PHP код:
CMD:update(playeridparams[])
{
    if (
PlayerInfo[playerid][pAdmin] >= 1337)
    {
        new 
string[256], text[128];
        
        if(
sscanf(params"s[128]"text)) return SendClientMessage(playerid, -1" /update [Update]");
        
format(stringsizeof(string), "Server Update: %s"text);
        
SendClientMessageToAll(-1string);
        return 
1;
    }

Please help?
Reply
#2

replace -1 with the color code in the format "0xCOLORCODEFF", use html-color-codes.info
pawn Код:
SendClientMessageToAll(0xFF8000AA, string);
Reply
#3

pawn Код:
CMD:update(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1337)
    {
        new string[256], text[128];
         
        if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, " /update [Update]");
        format(string, sizeof(string), "Server Update: %s", text);
        SendClientMessageToAll(0xFF9900AA, string);
        return 1;
    }
}
to make their own colors go : http://www.colorpicker.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)