27.01.2011, 02:12
Create the textdraw and apply the functions to it as you would. Then, when the player connects, show it to him.
You will need to make sure you declare 'Textdraw0' variable globally.
pawn Код:
public OnGameModeInit( )
{
Textdraw0 = TextDrawCreate(5.000000, 184.000000, "Welcome To New Legends Evolution");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.480000, 1.900000);
TextDrawColor(Textdraw0, 16711935);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
return 1;
}
public OnPlayerConnect( playerid )
{
TextDrawShowForPlayer( playerid, Textdraw0 );
return 1;
}