but pm me about that
|
Maybe make multiple textdraws. With the strings the colors you want.
|
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;
}
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]);
stock FixPlayerColors()
{
for( new i = 0; i < MAX_PLAYERS; i++) // foreach(Player, i)
{
if ( ! IsPlayerConnected( i ) ) continue;
switch ( team[i] ) // or your team identifier
{
case team_red: // or your red team identifier
{
SetPlayerColor( i , 0xFF0000FF );
}
case team_blue: // or your blue team identifier
{
SetPlayerColor( i , 0x0000FFFF );
}
}
}
return true;
}