Quote:
Originally Posted by DanishHaq
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; }
You're lucky I was just helping someone else with the same function, so that's why you got a quick reply :P.
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.
|
this my script =( next time give me credit :P