Textdraw in filterscript
#1

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

ps. @ connect doesn't show.
Reply
#2

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

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...?
Reply
#4

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

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....?

Reply
#6

need to know this asap.
Reply
#7

What's so hard to understand?
Reply
#8

i did not. so i need to do this?

create at Init();
set string at Connect();
show at Spawn();
Reply
#9

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.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)