04.09.2011, 23:39
Quote:
Maybe make multiple textdraws. With the strings the colors you want.
|
pawn Код:
stock CreatePlayerInfo(playerid)
{
// first text-draw.
InfoTextDraw[playerid][0] = TextDrawCreate(511.000000,102.000000, "Information textdraw 1");
TextDrawTextSize(InfoTextDraw[playerid][0], 850.0, 0.0);
TextDrawAlignment(InfoTextDraw[playerid][0], 0);
TextDrawBackgroundColor(InfoTextDraw[playerid][0], 0x000000ff);
TextDrawFont(InfoTextDraw[playerid][0], 0);
TextDrawLetterSize(InfoTextDraw[playerid][0], 0.399999,1.500000);
TextDrawColor(InfoTextDraw[playerid][0], 0xffffffff);
TextDrawSetShadow(InfoTextDraw[playerid][0], 1);
TextDrawSetOutline(InfoTextDraw[playerid][0],1);
TextDrawSetProportional(InfoTextDraw[playerid][0],1);
// second text-draw.
InfoTextDraw[playerid][1] = TextDrawCreate(511.000000,102.000000, "Information textdraw 2");
TextDrawTextSize(InfoTextDraw[playerid][1], 850.0, 0.0);
TextDrawAlignment(InfoTextDraw[playerid][1], 0);
TextDrawBackgroundColor(InfoTextDraw[playerid][1], 0x000000ff);
TextDrawFont(InfoTextDraw[playerid][1], 0);
TextDrawLetterSize(InfoTextDraw[playerid][1], 0.399999,1.500000);
TextDrawColor(InfoTextDraw[playerid][1], 0xffffffff);
TextDrawSetShadow(InfoTextDraw[playerid][1], 1);
TextDrawSetOutline(InfoTextDraw[playerid][1],1);
TextDrawSetProportional(InfoTextDraw[playerid][1],1);
isInfoTDCreated1[playerid] = true;
return true;
}
and this for the string
pawn Код:
format(textdrawString, 256,"~r~~h~%s - ~w~%d ~b~~h~%s - ~w~%d",TeamName[T_HOME],TeamRoundsWon[T_HOME],TeamName[T_AWAY],TeamRoundsWon[T_AWAY]);