How to make a textdraw dissapear after a few seconds? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make a textdraw dissapear after a few seconds? (
/showthread.php?tid=119177)
How to make a textdraw dissapear after a few seconds? -
Sampiscool123 - 07.01.2010
Hey,
How do i make my textdraw dissappear after a few seconds? for example when you spawn it says "Welcome to the server" how do i make it dissapear 10 seconds later?
Thank You
Re: How to make a textdraw dissapear after a few seconds? -
kamilbam - 07.01.2010
Use timer
In:
Put this:
Код:
SetTimer("TextDrawKill",10000,0);
then somewhere in your script at the end e.g
Код:
forward TextDrawKill( );
TextDrawKill( )
{
TextDrawDestroy(youtextdraw);
}
Re: How to make a textdraw dissapear after a few seconds? -
Sampiscool123 - 07.01.2010
Thank You. Also i have a problem. when i connect it shows a text draw but when i quit and go back on the server the text draw doesn't appear, it only appears if i restart the server
how do i make it show every time i connect?
Re: How to make a textdraw dissapear after a few seconds? -
HydraX - 07.01.2010
Put this in OnPlayerConnect
pawn Код:
TextDrawShowForPlayer(playerid, youtextdraw);