Using GetPlayerColor in client messages.
#6

Quote:
Originally Posted by Crayder
Посмотреть сообщение
No shit, we converted it to be usable as string by using (GetPlayerColor(playerid) >>> , then used {%06x}%s to embed it as hex...

No hard feelings, I'm glad to see you trying to help, thanks bro... Read before you think you know bro...
We? You didn't do anything, 0, nothing at all!

You should be nicer to people, I didn't want to post something that was already stated above.

Plus, the code of ThePhenix and mine does the exact same thing, in this case (The example of ThePhenix and my line).

Here's another way of doing this, assuming you stored a colour "0xFF00FFFF" in a string "PlayerInfo[playerid][pColour]":

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[144], name[MAX_PLAYER_NAME], playercolour;
    GetPlayerName(playerid, name, sizeof(name));
    sscanf(PlayerInfo[playerid][pColour], "x", playercolour);
    format(string, sizeof(string), "(%d) %s: {FFFFFF}%s", playerid, name, text);
    SendClientMessageToAll(playercolour, string);
    return 0;
}
Don't mislead others without a single clue what so ever.

- Regards,
SickAttack.
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: 2 Guest(s)