04.06.2011, 19:35
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?
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);
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);
I made the textdraw in onplayerpickuppickup but over 5 seconds the :
PHP код:
|
TextDrawHideForPlayer(playerid, Text:text);