Here is cut from my script
pawn Код:
forward EnableWidescreen(playerid,toggle);
new Text:Wide1,Text:Wide2;
new WidescreenEnabled[MAX_PLAYERS];
Wide1 = TextDrawCreate(0.0,0.0,"0~n~0~n~0~n~0~n~0~n~0~n~0~n~0~n~0"); //For /widescreen
TextDrawUseBox(Wide1,1);
TextDrawBoxColor(Wide1,0x000000FF);
TextDrawTextSize(Wide1,650,250);
TextDrawFont(Wide1,3);
TextDrawLetterSize(Wide1,1,1);
TextDrawColor(Wide1,0x000000FF);
Wide2 = TextDrawCreate(0.0,360.0,"0~n~0~n~0~n~0~n~0~n~0~n~0~n~0~n~0~n~0"); //For /widescreen
TextDrawUseBox(Wide2,1);
TextDrawBoxColor(Wide2,0x000000FF);
TextDrawTextSize(Wide2,650,250);
TextDrawFont(Wide2,3);
TextDrawLetterSize(Wide2,1,1);
TextDrawColor(Wide2,0x000000FF);
public EnableWidescreen(playerid,toggle)
{
if(IsPlayerConnected(playerid))
{
if(toggle == 1)
{
SetPlayerSpecialAction(playerid,8); // Player start to dance strip for hide HUD
SendEmptyLine(playerid,10); //Send 10 empty text lines
TextDrawShowForPlayer(playerid,Wide1);
TextDrawShowForPlayer(playerid,Wide2);
}
else if(toggle == 0)
{
SetPlayerSpecialAction(playerid,0); // Player stopto dance strip for show HUD
TextDrawHideForPlayer(playerid,Wide1);
TextDrawHideForPlayer(playerid,Wide2);
}
WidescreenEnabled[playerid] = toggle;
}
return 1;
}
Want see how its looks in Game?
193.84.20.19:7777