03.01.2015, 00:58
Hey, When I use this code to add the players ID to the chat next to their name. No matter what the players color is, it always appears white. How would I make it get the players name color and use it instead of white for all players?
pawn Код:
public OnPlayerText(playerid, text[])
{
new Name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, Name,sizeof(Name));
format(string,sizeof(string),"%s(%i): %s",Name,playerid,text);
SendClientMessageToAll(-1 ,string);
return 0;
}