Textdraws help
#1

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

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

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]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)