01.01.2015, 22:38
As you can see here, the -1 is color white.
Therefore it will send the message in white, use GetPlayerColor, and put it instead of -1.
You can always show the rest of the message in white if you want it by putting {FFFFFF} in the string format, whereever you want it to be white.
So replace the above with this.
Or ofcourse remove the {FFFFFF} if you do not want white color after the name. This works with other colors too, as long as you put them inside such boxes: { }
pawn Код:
format(str,sizeof(str),"[%02d:%02d:%02d] %s [%d]: %s",hours,minutes,seconds,PlayerName(playerid),playerid,text);
SendClientMessageToAll( -1, str); //
You can always show the rest of the message in white if you want it by putting {FFFFFF} in the string format, whereever you want it to be white.
So replace the above with this.
pawn Код:
format(str,sizeof(str),"[%02d:%02d:%02d] %s [%d]: {FFFFFF}%s",hours,minutes,seconds,PlayerName(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor, str);