OnPlayerText changing color
#3

Quote:
Originally Posted by SAMProductions
Посмотреть сообщение
Like This (?) :-
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(IsPlayerAdmin(playerid))
    {
        new pName[MAX_PLAYER_NAME], String[128];
        GetPlayerName(playerid, pName, 24);
        format(String, sizeof(String), "{FF0000}[Admin] {%06x}%s(%d): {FFFFFF}%s", (GetPlayerColor(playerid) >>> 8), pName, playerid, text);
        SendClientMessageToAll(-1,String);
        return 0;
    }
    return 1;
}
Ehhh sorta.
It turns the [Admin] red, and the Brandon: text as black so its not readable

EDIT:
If it helps?
pawn Код:
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x00FF00C8
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x1E90FFAA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF
Reply


Messages In This Thread
OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:35
Re: OnPlayerText changing color - by SAMProductions - 19.05.2014, 07:37
Re: OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:40
Re: OnPlayerText changing color - by SAMProductions - 19.05.2014, 07:43
Re: OnPlayerText changing color - by Guest4390857394857 - 19.05.2014, 07:48
Re: OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:49
Re: OnPlayerText changing color - by Threshold - 19.05.2014, 07:49
Re: OnPlayerText changing color - by Stanford - 19.05.2014, 07:50
Re: OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)