Requesting help with a textdraw
#1

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 ?
Reply
#2

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
}
Reply
#3

If your textdraw just says something like "Welcome to the server!" then it's easier to use GameTextForPlayer

https://sampwiki.blast.hk/wiki/GameTextForPlayer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)