Change color of this - 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)
+--- Thread: Change color of this (
/showthread.php?tid=423248)
Change color of this -
Eminem 2ka9 - 17.03.2013
I have a code below, what it currently does is adds the players rank before his name, and sets his rank, playername and text as his Teams color. I don't want it to set EVERYTHING to his team color, i only want his name to be his team color.
Example - (General
John: hello).
This is the current code.
pawn Код:
format(string, sizeof(string), "%s %s [%d]: %s", RankName(playerid), Name(playerid), playerid, text);
SendClientMessageToAll(TeamColor(playerid), string);
Re: Change color of this -
cotyzor - 17.03.2013
1. What is your colour code for TeamColor(playerid) ?
2. Use this: http://www.w3schools.com/tags/ref_colorpicker.asp and (re)select your colors
Re: Change color of this -
mastermax7777 - 17.03.2013
pawn Код:
format(string, sizeof(string), "{FFFFFF}%s {%06x} %s {FFFFFF}[%d]: %s", RankName(playerid), TeamColor(playerid), Name(playerid), playerid, text);
SendClientMessageToAll(TeamColor(playerid), string);
try maybe something like that? so everything is white except his name which is Team Color