PDA

View Full Version : Colors


miley1
17/05/2012, 08:14 PM
How do i change The Normal chat color If u press t

TyThaBomb
17/05/2012, 08:16 PM
Simply just add it onto OnPlayerText, make it send the message in a players color using GetPlayerColor and formatting a string.

Example:
new textmsg[128], name[MAX_PLAYER_NAME], color;
color = GetPlayerColor(playerid);
GetPlayerName(playerid, name, sizeof(name));
format(textmsg, sizeof(textmsg), " %s: %s", name, text);
SendClientMessageToAll(color, textmsg);

miley1
17/05/2012, 08:19 PM
I mean when you basicly write to someone and they see it only when u next to him I guess i was wrong , im using raven rp maybe u can help me now

TyThaBomb
17/05/2012, 08:20 PM
You can see if IsPlayerInRangeOfPoint of the person talking, that seems the best way, I don't do RP, so I can't be certain.

miley1
17/05/2012, 08:26 PM
Ill ask Hellman Thanks anyway