Change color of global chat? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Change color of global chat? (
/showthread.php?tid=266574)
Change color of global chat? -
Outcast - 05.07.2011
How can I change the color of global chat?
Re: Change color of global chat? -
iPLEOMAX - 05.07.2011
pawn Код:
public OnPlayerText(playerid, text[])
{
new Ftext[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(Ftext,sizeof(Ftext),"[%i]%s: %s",playerid,name,text);
SendClientMessageToAll(COLOR_HERE,Ftext); // Change 'COLOUR_HERE' with any colour you like..
return 0;
}
Re: Change color of global chat? -
Outcast - 05.07.2011
Quote:
Originally Posted by iPLEOMAX
pawn Код:
public OnPlayerText(playerid, text[]) { new Ftext[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(Ftext,sizeof(Ftext),"[%i]%s: %s",playerid,name,text); SendClientMessageToAll(COLOR_HERE,Ftext); // Change 'COLOUR_HERE' with any colour you like.. return 0; }
|
I know that, but how to do it if I'm using LimitGlobalChatRadius() ? Does it effect on SendClientMessageToAll?