05.02.2015, 10:31
So you want his name to appear in the chat as his color?, here's an example:
Set the defintions of the colors.
hint: #COL_WHITE is a 0.3c color.
I hope I helped any feedback would be appreciated!
pawn Код:
public OnPlayerText(playerid, text[])
{
if(AccountInfo[playerid][pColor] == 2) // or any number that represents red (u set these things)
{
new string[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername);
format(string,sizeof(string), "%s:"#COL_WHITE" %s", playername,text);
}
SendClientMessageToAll(COLOR_WHITE, string);
return 1;
}
hint: #COL_WHITE is a 0.3c color.
I hope I helped any feedback would be appreciated!