SA-MP Forums Archive
showing 1 TD over another? - 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: showing 1 TD over another? (/showthread.php?tid=649861)



showing 1 TD over another? - PepsiCola23 - 16.02.2018

So i got 2 TD`s,one a big black box on the entire screen and another one a picture.
the problem is the black screen is over the other TD so the other TD isn`t visible,how can i make the second TD to be over the black box?


Re: showing 1 TD over another? - iKarim - 16.02.2018

It depends on what order you show them to the player, in order to get the black box in the background you have to show it before the sprite.


Re: showing 1 TD over another? - PepsiCola23 - 16.02.2018

i tried
PHP код:
YCMD:sprite(playeridparams[], help)
{
    
PlayerTextDrawShow(playeridSprite[4]);
    
PlayerTextDrawShow(playeridSprite[0]);
    
PlayerTextDrawShow(playeridSprite[1]);
    
PlayerTextDrawShow(playeridSprite[2]);
    
PlayerTextDrawShow(playeridSprite[3]);
    return 
1;

still black box over all sprites

blackbox td :
PHP код:
Sprite[4] = CreatePlayerTextDraw(playerid641.6666871.500000"usebox");
    
PlayerTextDrawLetterSize(playeridSprite[4], 0.00000049.415019);
    
PlayerTextDrawTextSize(playeridSprite[4], -2.0000000.000000);
    
PlayerTextDrawAlignment(playerid,tSprite[4], 1);
    
PlayerTextDrawColor(playeridSprite[4], 0);
    
PlayerTextDrawUseBox(playeridSprite[4], true);
    
PlayerTextDrawBoxColor(playerid,Sprite[4], 255);
    
PlayerTextDrawSetShadow(playerid,Sprite[4], 0);
    
PlayerTextDrawSetOutline(playerid,Sprite[4], 0);
    
PlayerTextDrawFont(playeridSprite[4], 0); 



Re: showing 1 TD over another? - GTLS - 16.02.2018

Its actually behind other textdraws, but it just looks like its in the front. Try changing the transparency a bit.

0xFFFFFFAA


Re: showing 1 TD over another? - Mugala - 16.02.2018

toy have to show textdraws to players by numeric.


Re: showing 1 TD over another? - PepsiCola23 - 16.02.2018

SOLVED:iplaced thecreation of the textdraws before others (forgot to do that),it works now.

thanks guys .


Re: showing 1 TD over another? - Logic_ - 16.02.2018

Textdraws that you've to show in background should be created before others which are supposed to show on it. If that also doesn't helps then reshow the other Textdraws (except for the background one).


Re: showing 1 TD over another? - PepsiCola23 - 16.02.2018

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Textdraws that you've to show in background should be created before others which are supposed to show on it. If that also doesn't helps then reshow the other Textdraws (except for the background one).
solved,thanks