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



Textdraw in filterscript - Rks25 - 04.05.2009

Where to place a textdraw in filterscript, where it actually will show?

ps. @ connect doesn't show.


Re: Textdraw in filterscript - Weirdosport - 04.05.2009

You define the textdraw outside the callback (and modify it usually), and use ShowTextdrawForPlayer(whatever) inside the OnplayerConnect or w/e else callback.


Re: Textdraw in filterscript - Rks25 - 04.05.2009

in this case: i made textdraw at Connect callback, because it uses playerid integer.
And use the function TextDrawShowForPlayer inside OnPlayerSpawn, but i do not see the textdraw...?


Re: Textdraw in filterscript - Weirdosport - 04.05.2009

Make the textdraw outside the callback, then when they connect use TextdrawSetString to change the text to include their playerid, then do showtextdrawforplayer.

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


Re: Textdraw in filterscript - Rks25 - 04.05.2009

show me example, cuz i think you are talking confusing....

Listen.

if i do:

new Text:Check;

i can't make it new Text:Check[MAX_PLAYERS]; through a callback....?




Re: Textdraw in filterscript - Rks25 - 04.05.2009

need to know this asap.


Re: Textdraw in filterscript - MenaceX^ - 05.05.2009

What's so hard to understand?


Re: Textdraw in filterscript - Rks25 - 05.05.2009

i did not. so i need to do this?

create at Init();
set string at Connect();
show at Spawn();


Re: Textdraw in filterscript - Think - 05.05.2009

Quote:
Originally Posted by RKS_
i did not. so i need to do this?

create at Init();
set string at Connect();
show at Spawn();
you can show the textdraw @ connect too if you want, because if you show it at spawn i dunno what happends after the person respawned like 1000 times.


Re: Textdraw in filterscript - Rks25 - 05.05.2009

TextDrawShowForPlayer @ OnPlayerConnect in an FilterScript? Wasn't that bugged?

For that respawn thingy, i use a simple variable, FirstSpawn.

It is 1; when i connect, and it checks, if it is 1; it will show the textdraw @ spawn and become 0;