Quote:
Originally Posted by Jeffry
Hi there again,
I have a better way to do this:
At TOP:
pawn Код:
new Text:Textdraw30; new TDHideTimer = -1;
OnGameModeInit:
pawn Код:
Textdraw30 = TextDrawCreate(22.000000, 111.000000, " "); //So on with the TextDraw.....
OnPlayerConnect:
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);
The function:
pawn Код:
forward HideTextdraw(); public HideTextdraw() { TextDrawHideForAll(Textdraw30); TextDrawSetString(Textdraw30, " "); return 1; }
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 
|
OMG THANKS AGAIN
See what i tell u my here XD