SA-MP Forums Archive
TD Question - 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: TD Question (/showthread.php?tid=311098)



nevermind - ZmaXy - 15.01.2012

//nevermind


Re: TD Question - coole210 - 15.01.2012

pawn Код:
ShowPlayerTextDraw



Re: TD Question - Kitten - 15.01.2012

Please be more specific, what do you mean by "When TextDraw put under OnGameModeInit, when the OnPlayerConnect?", by looking at the text do you mean how to add the textdraw onplayerconnect or show the textdraw?

Well i'll just show both.

Showing OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
     TextDrawShowForPlayer(playerid,textdrawid);
     return 1;
}
Or adding textdraw in the callback onplayerconnect

pawn Код:
public OnPlayerConnect(playerid)
{
     Yeahhh = TextDrawCreate(280.0,550.0,"Yeahhhhhhh");
     return 1;
}



Re: TD Question - ZmaXy - 15.01.2012

xD, I know how add Textdraw

Question:

When add TextDraw under OnPlayerConnect?
When add TextDraw under OnGameModeInit?


Re: TD Question - Kitten - 15.01.2012

Quote:
Originally Posted by ZmaXy
Посмотреть сообщение
xD, I know how add Textdraw

Question:

When add TextDraw under OnPlayerConnect?
When add TextDraw under OnGameModeInit?
Sorry for acting stupid , but what you mean "when" add under those callbacks?


Re: TD Question - ScriptJorkis - 15.01.2012

the good example is

pawn Код:
//top of script
new LALATD;

//OnGamemodeinit
LALATD = //Textdraw code goes here

//OnPlayerConnect
TextDrawShowForPlayer(playerid, LALATD);
if you want to show by using a command then do the same as what i do onplayerconnect