25.06.2013, 17:28
Quote:
You have to use the color of the player to show the correct color.
pawn Код:
|
haha i was trying like this lol
pawn Код:
public OnPlayerText(playerid, text[])
{
new message[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
GetPlayerColor(playerid);
format(message, sizeof message, "%s(%d): {FFFFFF}%s", name, playerid, text);
SendClientMessageToAll(playerid, message);
return 0;
}
but it sets the player color to black. is there a way to make it random. because everyone will be black in the server lol