Using GetPlayerColor in client messages.
#2

Here's an example:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    new Name[24];
    GetPlayerName(playerid, Name, sizeof(Name));
    format(string, sizeof(string), "{%06x}%s[%d]: {FFFFFF}%s", (GetPlayerColor(playerid) >>> 8), Name, playerid, text);
    SendClientMessageToAll(-1, string);
    return 0;
}
Reply


Messages In This Thread
Using GetPlayerColor in client messages. - by Crayder - 29.09.2014, 02:17
Re: Using GetPlayerColor in client messages. - by ThePhenix - 29.09.2014, 02:18
Re: Using GetPlayerColor in client messages. - by Crayder - 29.09.2014, 02:26
Re: Using GetPlayerColor in client messages. - by SickAttack - 29.09.2014, 03:59
Re: Using GetPlayerColor in client messages. - by Crayder - 29.09.2014, 21:19
Re: Using GetPlayerColor in client messages. - by SickAttack - 29.09.2014, 21:47
Re: Using GetPlayerColor in client messages. - by Crayder - 29.09.2014, 22:11
Re: Using GetPlayerColor in client messages. - by SickAttack - 29.09.2014, 22:46
Re: Using GetPlayerColor in client messages. - by Crayder - 29.09.2014, 23:16

Forum Jump:


Users browsing this thread: 4 Guest(s)