I need a little help with Colour messages
#6

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,
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.
Reply


Messages In This Thread
I need a little help with Colour messages - by Join7 - 04.12.2011, 15:19
Re: I need a little help with Colour messages - by Thresholdold - 04.12.2011, 15:22
Re: I need a little help with Colour messages - by Join7 - 04.12.2011, 15:24
Re: I need a little help with Colour messages - by grand.Theft.Otto - 04.12.2011, 15:30
Re: I need a little help with Colour messages - by Thresholdold - 04.12.2011, 15:31
Re: I need a little help with Colour messages - by leong124 - 04.12.2011, 15:32
Re: I need a little help with Colour messages - by Join7 - 04.12.2011, 15:37

Forum Jump:


Users browsing this thread: