if (strcmp("/stunt", cmdtext, true, 10) == 0)
{
new player[24];
GetPlayerName(playerid,player,sizeof(player));
format(tmp,sizeof(tmp),"%s",player,playerid);
Textdraw1 = TextDrawCreate(188.000000,429.000000,tmp);
TextDrawAlignment(Textdraw1,0);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawFont(Textdraw1,1);
TextDrawLetterSize(Textdraw1,0.499999,1.000000);
TextDrawColor(Textdraw1,0xffff00cc);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetShadow(Textdraw1,1);
TextDrawShowForAll(Text:0);
TextDrawShowForAll(Text:1);
TextDrawShowForAll(Text:2);
SetTimer("TextHide", 5000, false);
return 1;
}
Originally Posted by JeNkStAX
Either plot it out better, Or make is so if thier name is longer than so many characters then it moves it over
|
Originally Posted by 0rb
Align it to the right?
|
Originally Posted by Marcel
if( strval( player ) > 15 )
Now it will check if the name is bigger than 15 characters, just use ~n~ in the textdraw to create a new line. |
Originally Posted by Marcel
if( strval( player ) > 15 )
Now it will check if the name is bigger than 15 characters, just use ~n~ in the textdraw to create a new line. |
if (strcmp("/stunt", cmdtext, true, 10) == 0)
{
new player[24];
GetPlayerName(playerid,player,sizeof(player));
format(tmp,sizeof(tmp),"%s have joined /stunt",player,playerid);
Textdraw0 = TextDrawCreate(195.000000,429.000000,tmp);
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,1);
TextDrawLetterSize(Textdraw0,0.399999,1.000000);
TextDrawColor(Textdraw0,0xffff0099);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawShowForAll(Text:0);
SetTimer("TextHide", 5000, false);
return 1;
}