SA-MP Forums Archive
I Need Full Screen Black (Textdraw maybe?) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I Need Full Screen Black (Textdraw maybe?) (/showthread.php?tid=259479)



I Need Full Screen Black (Textdraw maybe?) - lawonama - 04.06.2011

Hey, in my games, in a part the lights must go off. And the whole screen must be black. Is there a way to do it? I searched already and found something with textdraws but i couldn't make it. Any help please?


Re: I Need Full Screen Black (Textdraw maybe?) - Backwardsman97 - 04.06.2011

There's a script made by seif called seifader where it covers the whole screen and fades it a certain color. You could look in there and see how he covered the whole screen. It does use textdraws.


Re: I Need Full Screen Black (Textdraw maybe?) - KoczkaHUN - 04.06.2011

Make a black textdraw on the whole screen:
pawn Код:
blackTD = TextDrawCreate(-20.000000,2.000000,"|");
        TextDrawUseBox(blackTD,1);
        TextDrawBoxColor(blackTD,0x000000ff);
        TextDrawTextSize(blackTD,660.000000,22.000000);
        TextDrawAlignment(blackTD,0);
        TextDrawBackgroundColor(blackTD,0x000000ff);
        TextDrawFont(blackTD,3);
        TextDrawLetterSize(blackTD,1.000000,52.200000);
        TextDrawColor(blackTD,0x000000ff);
        TextDrawSetOutline(blackTD,1);
        TextDrawSetProportional(blackTD,1);
        TextDrawSetShadow(blackTD,1);
(edited from gCamera)


Re: I Need Full Screen Black (Textdraw maybe?) - lawonama - 04.06.2011

I made the textdraw in onplayerpickuppickup but over 5 seconds the :
PHP код:
TextDrawUseBox(blackTD,1);
        
TextDrawBoxColor(blackTD,0x000000ff);
        
TextDrawTextSize(blackTD,660.000000,22.000000);
        
TextDrawAlignment(blackTD,0);
        
TextDrawBackgroundColor(blackTD,0x000000ff);
        
TextDrawFont(blackTD,3);
        
TextDrawLetterSize(blackTD,1.000000,52.200000);
        
TextDrawColor(blackTD,0x000000ff);
        
TextDrawSetOutline(blackTD,1);
        
TextDrawSetProportional(blackTD,1);
        
TextDrawSetShadow(blackTD,1); 
Code must be deleted again. How to do that?


Re: I Need Full Screen Black (Textdraw maybe?) - Adil - 04.06.2011

Quote:
Originally Posted by lawonama
Посмотреть сообщение
I made the textdraw in onplayerpickuppickup but over 5 seconds the :
PHP код:
TextDrawUseBox(blackTD,1);
        
TextDrawBoxColor(blackTD,0x000000ff);
        
TextDrawTextSize(blackTD,660.000000,22.000000);
        
TextDrawAlignment(blackTD,0);
        
TextDrawBackgroundColor(blackTD,0x000000ff);
        
TextDrawFont(blackTD,3);
        
TextDrawLetterSize(blackTD,1.000000,52.200000);
        
TextDrawColor(blackTD,0x000000ff);
        
TextDrawSetOutline(blackTD,1);
        
TextDrawSetProportional(blackTD,1);
        
TextDrawSetShadow(blackTD,1); 
Code must be deleted again. How to do that?
Set a timer for 5 seconds and Use:
pawn Код:
TextDrawHideForPlayer(playerid, Text:text);