Define a colour to playerid variable [+1 rep]
#7

Quote:
Originally Posted by Richie
Посмотреть сообщение
pawn Код:
switch(playerid)
{
    case 0: SetPlayerColor(playerid, 0x24FF0AB9); // Sets green color to playerid 0.
    case 1: // Same here with color you want for id 1.
}
Its one way to do it, but alot of work if you want evey single player with different colors. That one can be used after login to set player color.

Here is another way of doing it, under OnPlayerText;
pawn Код:
switch(playerid)
{
    case 0: SendClientMessageToAll(0x24FF0AB9, text);
    case 1: // Same here with color you want for id 1.
}
It's not that, I want the id to change of colour, not the nickname....

when someone says something, it looks like this:

PlayerX: [0] I'm talking

[0] = id, I want this part to be colored as green... if the 0(id) is not possible to change the colour, then it whould be enough to change the [ ] colours.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)