Color chat?
#3

Quote:
Originally Posted by JaTochNietDan
Well you can just do

pawn Code:
new string[128];
new name[24];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s: %s",name,text);
SendClientMessageToAll(whatevercolor,string);
Put that in OnPlayerText and replace whatevercolor with the color you want, you can also make it so that it choses the color of their name by replacing whatevercolor with GetPlayerColor(playerid)
Also remember to return the function 0 or else it will display both messages.
Reply


Messages In This Thread
Color chat? - by Servidor_BRASIL - 03.12.2008, 19:38
Re: Color chat? - by JaTochNietDan - 03.12.2008, 19:41
Re: Color chat? - by Norn - 03.12.2008, 19:54
Re: Color chat? - by Serbish - 03.12.2008, 19:55
Re: Color chat? - by Servidor_BRASIL - 03.12.2008, 20:01
Re: Color chat? - by Serbish - 03.12.2008, 20:05
Re: Color chat? - by Servidor_BRASIL - 03.12.2008, 20:09
Re: Color chat? - by Mikep - 03.12.2008, 20:14
Re: Color chat? - by Servidor_BRASIL - 03.12.2008, 21:35
Re: Color chat? - by Mikep - 03.12.2008, 21:38
Re: Color chat? - by randomkid88 - 10.08.2010, 03:13
Re: Color chat? - by bestr32 - 16.01.2012, 19:15

Forum Jump:


Users browsing this thread: 2 Guest(s)