I Need Full Screen Black (Textdraw maybe?)
#1

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?
Reply
#2

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.
Reply
#3

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)
Reply
#4

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?
Reply
#5

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)