SA-MP Forums Archive
Where do you put TextDrawShowForAll ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Where do you put TextDrawShowForAll ? (/showthread.php?tid=71729)



Where do you put TextDrawShowForAll ? - Klutty - 03.04.2009

I have
pawn Код:
Textdraw0 = TextDrawCreate(1.000000,434.000000,"Sweet Life DM/Stunt - /help /admins");
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,1.500000);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
Under OnGameModeInit

And
pawn Код:
new Text:Textdraw0;
At top, now where do I put
pawn Код:
TextDrawShowForAll // and what else after?
I have tried under OnGameModeInit but it doesnt show up IG.


Re: Where do you put TextDrawShowForAll ? - gijsmin - 03.04.2009

Read wiki!


Re: Where do you put TextDrawShowForAll ? - Klutty - 03.04.2009

Quote:
Originally Posted by Gijsmin
Read wiki!
I have, didnt show where to put it!


Re: Where do you put TextDrawShowForAll ? - Pyrokid - 03.04.2009

I'm guessing this is a textdraw that will be show to the whole server constantly. In that case, use TextDrawShowForPlayer and put it in OnPlayerConnect.


Re: Where do you put TextDrawShowForAll ? - GTA_Rules - 03.04.2009

Indeed, you just create the textdraw, you never make it actually show up. Use TextDrawShowForPlayer (in OnPlayerConnect or OnPlayerSpawn)


Re: Where do you put TextDrawShowForAll ? - Klutty - 03.04.2009

Yh, thanks, works now!