16.10.2013, 21:19
pawn Код:
public OnPlayerText(playerid, text[])
{
new chat[200], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(chat, sizeof(chat), "%s (%d): {009900}%s", name, playerid, text);
SendClientMessageToAll(0xFFFFFFFF, string);
return 0;
}
Explanation:
The {009900} is a HEX code for dark green, that's how you use color embedding in your script. Check this site for a HTML Color Picker: http://www.w3schools.com/tags/ref_colorpicker.asp, and check this part of the wiki for a color embedding tutorial: https://sampwiki.blast.hk/wiki/Colour_Em...olor_embedding.