30.08.2010, 18:05
pawn Код:
new Text:Textdraw0;//On top
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "~R~%s~w~(ID: %d has joined the server.", PlayerName, playerid);
Textdraw0 = TextDrawCreate(19, 145, string); //Under OnPlayerConnect
TextDrawShowForAll(Textdraw0);
TextDrawSetOutline(Textdraw0,true);
SetTimer("HideTD",5000,true);
pawn Код:
forward HideTD();
public HideTD()
{
TextDrawHideForAll(Textdraw0);//Somewhere in your script NOT in any functions.
}