Hide textdraws
#1

^^^^^^^^
Reply
#2

Create the textdraw
Display the textdraw in OnPlayerSpawn
Start a timer in OnPlayerSpawn for whatever time you want(5-10 seconds)
Hide the textdraw
Reply
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
    // called when player spawn
    TextDrawHideForPlayer(playerid, textdraw); // replace textdraw with your defined textdraw
    // hide textdraw when player spawn
    return 1;
}
Reply
#4

Quote:
Originally Posted by doreto
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
    // called when player spawn
    TextDrawHideForPlayer(playerid, textdraw); // replace textdraw with your defined textdraw
    // hide textdraw when player spawn
    return 1;
}
He wants it to show AFTER the player spawns
Reply
#5

Try that:

Код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, textdraw); // your textdraw
Reply
#6

^^^^^^^^
Reply
#7

You could also use GameTextForPlayer?

If not, a timer (SetTimerEx) calling a public function to hide your TextDraw, like so:

Код:
public    OnPlayerSpawn(playerid)
{
      SetTimerEx("function_name", 5000, false, "i", playerid); // Change 'function_name' to whatever.
}

public    function_name(playerid) // Change 'function_name' to whatever.
{
    TextDrawHideForPlayer(playerid, your_textdraw); // If global textdraw
    PlayerTextDrawHide(playerid, your_playertextdraw); // If player textdraw
}
Reply
#8

If you want that player will able to see where he get spawned and what's the time now thru textdraw then use timer and create two textdraws( 1st for shows time n 2nd for show location) n for location use zonenames or something related to zone name ... I think it will be in ur include files...
Edit:: use them under on playerspawn..
And if you want that textdraw need to be shown for a time limit then use stocks n public function to n settimerex to call these functions ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)