SA-MP Forums Archive
Textdraws help - 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: Textdraws help (/showthread.php?tid=619478)



Textdraws help - Gotham - 18.10.2016

Hi guys,
I want to make a text draw appear when he/she is in the login/register screen and destroy it after they spawn.
any ideas?


Re: Textdraws help - doreto - 18.10.2016

Quote:
Originally Posted by Gotham
Посмотреть сообщение
Hi guys,
I want to make a text draw appear when he/she is in the login/register screen and destroy it after they spawn.
any ideas?
"I want to make a text draw appear when he/she is in the login/register screen" - TextDrawShowForPlayer

"destroy it after they spawn" -
PHP код:
public OnPlayerSpawn(playerid)
{
     
TextDrawDestroy(Text:text);
    return 
1;

https://sampwiki.blast.hk/wiki/TextDrawDestroy


Re: Textdraws help - henkas - 18.10.2016

So you should create this at OnPlayerConnect callback if you want appear it when login
Код:
TextDrawShowForPlayer(playerid, VARIABLENAME);
And destroy you should put at OnPlayerSpawn this code
Код:
TextDrawDestroy(VARIABLENAME[playerid]);