SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/01/2020, 06:24 PM   #1
Davi52
Little Clucker
 
Join Date: Sep 2018
Posts: 40
Reputation: 0
Question Textdraw and Player Textdraws order

Hey! I have problems with my textdraw orders of showing them. So first of all, I know that the showing order is that you create them, but now its complex. I have both PlayerTextDraw and normal(global)TextDraws, and I want a PlayerTextDraw to be shown in the most back position(Fading screen in back of a Login textdraw), and I cant do the same thing because I can create PlayerTextDraws only when a player connects, while the Global ones needs to be created on the Gamemode start. If i create them when the player connects, results flood, and If i create on the GameModeInit the Fading Screen for each player(for cycle from 0 to MAX PLAYERS), it wont be creating it, I tested Can somebody give me some tipps? Thank you very much!: o
Davi52 is offline   Reply With Quote
Old 16/01/2020, 10:34 PM   #2
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,891
Reputation: 1321
Default Re: Textdraw and Player Textdraws order

You only need one global textdraw as a fade textdraw for all players. I was well aware of this problem when creating Texture Studio so I started a side project to organize the creation of Textdraws a bit differently. Unfortunately that system is only a prototype I was going to take the time to polish it off and create a whole editor that uses the gui system it's self to work.
Pottus is offline   Reply With Quote
Old 17/01/2020, 07:51 AM   #3
Davi52
Little Clucker
 
Join Date: Sep 2018
Posts: 40
Reputation: 0
Default Re: Textdraw and Player Textdraws order

So u mean to do a global one, for all players, and Create them on the gamemode init(for each player, included the offline ones) before all other textdraws?
Davi52 is offline   Reply With Quote
Old 17/01/2020, 08:22 PM   #4
Davi52
Little Clucker
 
Join Date: Sep 2018
Posts: 40
Reputation: 0
Default Re: Textdraw and Player Textdraws order

I made it how you said, and worked!!! Thanks a lot bro! +rep
Davi52 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Order of TextDraws - weird behaviour Michalec Scripting Help 2 08/03/2018 10:19 PM
Sniper Rifle && order TextDraw system SukMathcuck Scripting Help 3 19/07/2015 04:34 PM
Global TextDraws on top of Player TextDraws [resolved] Joe Staff Scripting Help 0 17/05/2013 05:35 AM
[FilterScript] [FS] TextDraw editor 0.6 - Multiple textdraw support, for proffesional textdraws Zamaroht Filterscripts 369 20/01/2013 02:46 PM
Textdraws not showing in right order NeRoSiS Help Archive 5 01/06/2009 09:23 PM


All times are GMT. The time now is 07:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.