SA-MP Forums Archive
[Chat Script Help] - 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: [Chat Script Help] (/showthread.php?tid=153938)



[Chat Script Help] - Thrarod - 11.06.2010

I want to learn how to do "Aliatris: [ID] text here",

Thanx


Re: [Chat Script Help] - Norck - 11.06.2010

pawn Код:
//OnPlayerText
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s [%i]: %s",name,playerid,text);
SendClientMessageToAll(color,string);//Change color



Re: [Chat Script Help] - Thrarod - 11.06.2010

I want name and text colored different not same like Madoshi's Everystuff


Re: [Chat Script Help] - DJDhan - 11.06.2010

You can use SetPlayerColor.



Re: [Chat Script Help] - Norck - 11.06.2010

Do you want to make a player's name and playerid with one color and text with another?


Re: [Chat Script Help] - Hiddos - 11.06.2010

Like the person's name != the same colour as the text?

SendPlayerMessageToAll


Re: [Chat Script Help] - Thrarod - 12.06.2010

Quote:
Originally Posted by Hiddos
Like the person's name != the same colour as the text?

SendPlayerMessageToAll
THANKS ALOT