How to set text in the screen (forever) - 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: How to set text in the screen (forever) (
/showthread.php?tid=552775)
How to set text in the screen (forever) -
davidstyle1125 - 26.12.2014
Hey, I wanted to know, how can I make TEXT that will stay allways on the screen, for example
in the top->right of the screen, like.. server's name, or server's forum address..
Re: How to set text in the screen (forever) -
jackx3rx - 26.12.2014
Use a textdraw.
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
Re: How to set text in the screen (forever) -
davidstyle1125 - 27.12.2014
It shows me this, and in-game i can't see the text..
i did all they said.
Re: How to set text in the screen (forever) -
dominik523 - 27.12.2014
Did you use TextDrawShowForAll?
Re: How to set text in the screen (forever) -
davidstyle1125 - 27.12.2014
No, I used PlayerTextDrawShow...
Re: How to set text in the screen (forever) -
Eyce - 27.12.2014
Then assign the textdraw to a variable for each player.
pawn Код:
new PlayerText:TextDrawName[MAX_PLAYERS];
Then you can put this under OnPlayerConnect
pawn Код:
TextDrawName[playerid] = CreatePlayerTextDraw(...);
Then show it for each player
pawn Код:
PlayerTextDrawShow(playerid, TextDrawName[playerid]);
Alternatively, you can use these...
https://sampwiki.blast.hk/wiki/TextDrawCreate
https://sampwiki.blast.hk/wiki/TextDrawShowForAll
if you want it to be seen by the whole server.
Re: How to set text in the screen (forever) -
LivingLikeYouDo - 27.12.2014
Show your code. I suck at predictions.