25.02.2011, 17:18
Hi there again,
I have a better way to do this:
At TOP:
OnGameModeInit:
OnPlayerConnect:
The function:
Thats a better usage, because you do not destroy and create the TD always. 
If you have any questions or find any bugs you don't know how to fix, feel free to ask.
Jeffry
I have a better way to do this:
At TOP:
pawn Код:
new Text:Textdraw30;
new TDHideTimer = -1;
pawn Код:
Textdraw30 = TextDrawCreate(22.000000, 111.000000, " ");
//So on with the TextDraw.....
pawn Код:
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "~y~%s ~w~has joined the server", pname);
TextDrawSetString(Textdraw30, string);
TextDrawShowForAll(Textdraw30);
if(TDHideTimer != -1) KillTimer(TDHideTimer);
TDHideTimer = SetTimer("HideTextdraw",4000,false);
pawn Код:
forward HideTextdraw();
public HideTextdraw()
{
TextDrawHideForAll(Textdraw30);
TextDrawSetString(Textdraw30, " ");
return 1;
}

If you have any questions or find any bugs you don't know how to fix, feel free to ask.
Jeffry
