04.12.2011, 15:32
You need this: https://sampforum.blast.hk/showthread.php?tid=194202
Colour codes like "{FF0000}" are hidden in the chat text input. You need to replace the format of the code into some others, and convert them back when you use SendClientMessage(ToAll).
Also,
Colour codes like "{FF0000}" are hidden in the chat text input. You need to replace the format of the code into some others, and convert them back when you use SendClientMessage(ToAll).
Also,
pawn Код:
format(string, sizeof(string), "(%d): %s", playerid, text);//Putting [0] will only output the first character of the text.
SendPlayerMessageToAll(GetPlayerColor(playerid), string);//You need to use SetPlayerColor in OnPlayerConnect first if you want to use this, otherwise you need to change GetPlayerColor(playerid) into some other constant colours.