colour problem
#1

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?
Reply
#2

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);
Reply
#3

but the thing is everyone has different colour, as it uses getplayercolor: SendClientMessageToAll(GetPlayerColor(playerid), string);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)