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

Use colour embedding {RGB color here}.
pawn Код:
public OnPlayerText(playerid, text[])
{
  new string[128];
  format(string, sizeof(string),"{24FF0A}[%d]{FFFFFF} %s",playerid, text);
  SendPlayerMessageToAll(playerid,string);
  return 0;
}
First I turn the playerid to green then the message to white.
Edit: Changed a thing in the code.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)