Requesting help with a textdraw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Requesting help with a textdraw (
/showthread.php?tid=467654)
Requesting help with a textdraw -
SCRPWilliam - 04.10.2013
Hello, I'm a bit new in scripting.
Today, I tried textdraws, I was able to create one but it will only disappear when the player disconnects.
How would I make it disappear in 5 seconds ?
Re: Requesting help with a textdraw -
Konstantinos - 04.10.2013
Where you want to show the textdraw set a timer:
pawn Код:
SetTimerEx( "DisappearPlayerTD", 5000, false, "i", playerid );
pawn Код:
forward DisappearPlayerTD( playerid );
public DisappearPlayerTD( playerid )
{
// Hide the TD here
}
Re: Requesting help with a textdraw -
Mattakil - 04.10.2013
If your textdraw just says something like "Welcome to the server!" then it's easier to use GameTextForPlayer
https://sampwiki.blast.hk/wiki/GameTextForPlayer