Textdraws
#1

^^^^^^^^
Reply
#2

I'd use per-player textdraws for the statistics and muted/frozen/caged and global textdraw for the 'Welcome' one.

* Per-player textdraws use [MAX_PLAYERS], the global textdraws do not.
Reply
#3

^^^^^^^^
Reply
#4

Yes, but do not forget that per-player textdraws are created by CreatePlayerTextDraw and global textdraws are created by TextDrawCreate.
Reply
#5

^^^^^^^^
Reply
#6

pawn Код:
PlayerTextDrawShow(playerid, Textdraw0[playerid]);
You must declare them as:
pawn Код:
new
    PlayerText: Textdraw0[ MAX_PLAYERS ]
;
Goto: https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw and scroll down. All of the functions about per-player textdraws exist at the bottom of the page.
Reply
#7

create a textdraw for each player using foreach:
pawn Код:
foreach(Player, i)
{
     Textdraw0[i] = TextDrawCreate(490.000000, 404.000000, "Bla bla");
}
and somewhere else in the script you can do:
pawn Код:
TextDrawShowForPlayer(Textdraw0[playerid]);
TextDrawHideForPlayer(Textdraw0[playerid]); // and so on
Reply
#8

^^^^^^^^
Reply
#9

^^^^^^^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)