colour problem - 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: colour problem (
/showthread.php?tid=251152)
colour problem -
HondaCBR - 25.04.2011
format(string, sizeof string, "[ID:%d] {FF0000}Admin %s: %s", playerid, string, text); }
SendClientMessageToAll(GetPlayerColor(playerid), string);
i want the admin part to be red, and rest of it to be original colour, i got the red part buy everything else after admin is red too how can i stop that is there something like idont know {0000} or somethign that will stop using that colour?
Re: colour problem -
JaTochNietDan - 25.04.2011
Simply add the color you want to change it too to after the "admin" part. For example:
pawn Код:
format(string, sizeof string, "[ID:%d] {FF0000}Admin %s:{FFF125} %s", playerid, string, text);
Re: colour problem -
HondaCBR - 25.04.2011
but the thing is everyone has different colour, as it uses getplayercolor: SendClientMessageToAll(GetPlayerColor(playerid), string);