06.12.2011, 20:26
Look. I don't know how ProxDetector works but here is how I would do that
You simply use Hex Color codes. http://www.colorpicker.com/ to get them. They got added in 0.3c (I think xD)
pawn Код:
public OnPlayerText(playerid, text[])
{
new pname[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, pname, sizeof(pname));
strreplace(pname, '_', ' ');//This will show when player speaks FirstName_LastName says: test
format(str, sizeof(str), "%s: {FFFFFF} %s", pname, text);
ProxDetector(30.0, playerid, str, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
return 0;
}