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



Textdraw help - bebothekillar - 17.02.2013

Hello, i made this textdraw i put it OnGameModeInit so doesn't appear why?

On top
new Text:Welcome;

Quote:

Welcome = TextDrawCreate(7 ,459 , "XtremesServers.tk");
TextDrawFont(Welcome , 3);
TextDrawLetterSize(Welcome , 0.5, 3.5);
TextDrawColor(Welcome , 0xff4400FF);

And i wanna to know how to make a text appear when the player enter the server for 3 seconds the hide im trying with

Gametextforplayer i can't


Respuesta: Textdraw help - Dex007HLH - 17.02.2013

Now you have to show it
Put this:

Code:
public OnPlayerConnect(playerid)
{
    //This is used to show the player the textdraw when they connect.
    TextDrawShowForPlayer(playerid,Welcome);
}



Re: Textdraw help - DaRk_RaiN - 17.02.2013

Yes of course it doesn't appear, because you have to show it manually using TextDrawShowForPlayer or TextDrawShowForAll.
If you already know that, then check that the text draw position is valid here
Code:
Welcome = TextDrawCreate(7 ,459 , "XtremesServers.tk");



Re: Textdraw help - bebothekillar - 17.02.2013

Dark_Rain

What do you mean?


Re: Textdraw help - DaRk_RaiN - 17.02.2013

My post pretty much explained everything, Well what you did there is load textdraw, but you didn't actually show it, to show it you'd have to use one of those two function above of my post TextDrawShowForPlayer or TextDrawShowForAll
Example of code:
pawn Code:
public OnPlayerConnect(playerid)
{
//Your code bla bla
TextDrawShowForPlayer(playerid, Welcome);//This will show the text draw for the player when he connects
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
//Your code bla bla
TextDrawHideForPlayer(playerid, Welcome);//This will hide the text draw for the player when he request class
return 1;
}