в #define
Code: Select all
#define COLOR_BORDER 0x00000AA
Ко всем new:
Code: Select all
new Text:LBorder;
new Text:RBorder;
new Text:BBorder;
new Text:TBorder;
В public OnGameModeInit()
Code: Select all
LBorder = TextDrawCreate(352.000000, 389.000000, " ");
RBorder = TextDrawCreate(351.000000, 434.000000, " ");
BBorder = TextDrawCreate(353.000000, 389.000000, " ");
TBorder = TextDrawCreate(532.000000, 389.000000, " ");
TextDrawBackgroundColor(LBorder, COLOR_BORDER);
TextDrawFont(LBorder, 1);
TextDrawLetterSize(LBorder, 0.500000, 1.000000);
TextDrawColor(LBorder, -1);
TextDrawSetOutline(LBorder, 0);
TextDrawSetProportional(LBorder, 1);
TextDrawSetShadow(LBorder, 1);
TextDrawUseBox(LBorder, 1);
TextDrawBoxColor(LBorder, COLOR_BORDER);
TextDrawTextSize(LBorder, 528.000000, 0.000000);
TextDrawBackgroundColor(RBorder, COLOR_BORDER);
TextDrawFont(RBorder, 1);
TextDrawLetterSize(RBorder, 0.500000, 1.000000);
TextDrawColor(RBorder, -1);
TextDrawSetOutline(RBorder, 0);
TextDrawSetProportional(RBorder, 1);
TextDrawSetShadow(RBorder, 1);
TextDrawUseBox(RBorder, 1);
TextDrawBoxColor(RBorder, COLOR_BORDER);
TextDrawTextSize(RBorder, 530.000000, 0.000000);
TextDrawBackgroundColor(BBorder, COLOR_BORDER);
TextDrawFont(BBorder, 1);
TextDrawLetterSize(BBorder, 0.500000, 1.000000);
TextDrawColor(BBorder, -1);
TextDrawSetOutline(BBorder, 0);
TextDrawSetProportional(BBorder, 1);
TextDrawSetShadow(BBorder, 1);
TextDrawUseBox(BBorder, 1);
TextDrawBoxColor(BBorder, COLOR_BORDER);
TextDrawTextSize(BBorder, 343.000000, -2.000000);
TextDrawBackgroundColor(TBorder, COLOR_BORDER);
TextDrawFont(TBorder, 1);
TextDrawLetterSize(TBorder, 0.500000, 1.000000);
TextDrawColor(TBorder, -1);
TextDrawSetOutline(TBorder, 0);
TextDrawSetProportional(TBorder, 1);
TextDrawSetShadow(TBorder, 1);
TextDrawUseBox(TBorder, 1);
TextDrawBoxColor(TBorder, COLOR_BORDER);
TextDrawTextSize(TBorder, 532.000000, 0.000000);
В public OnPlayerStateChange(playerid, newstate, oldstate)
Ищите типо таких строк
Code: Select all
f(newstate == PLAYER_STATE_DRIVER)
{
if(PlayerRacing[playerid] == 0)
{
if(!IsAPlane(tacha) && !IsABoat(tacha) && !IsANoSpeed(tacha))
{
TextDrawShowForPlayer(playerid,Box);
TextDrawShowForPlayer(playerid,LBorder);
TextDrawShowForPlayer(playerid,RBorder);
TextDrawShowForPlayer(playerid,BBorder);
TextDrawShowForPlayer(playerid,TBorder);
TextDrawShowForPlayer(playerid,SpeedShow[playerid]);
TextDrawShowForPlayer(playerid,Fuel);
TextDrawShowForPlayer(playerid,FuelShow[playerid]);
TextDrawShowForPlayer(playerid,Status);
TextDrawShowForPlayer(playerid,StatusShow[playerid]);
TextDrawShowForPlayer(playerid,KMShow[playerid]);
TextDrawShowForPlayer(playerid,FillShow[playerid]);
TextDrawShowForPlayer(playerid,MaxShow[playerid]);
Arrester[playerid] = true;
}
}
}
else if(newstate == PLAYER_STATE_ONFOOT)
{
if(!IsAPlane(tacha) && !IsABoat(tacha) && !IsANoSpeed(tacha))
{
TextDrawHideForPlayer(playerid,Box);
TextDrawHideForPlayer(playerid,LBorder);
TextDrawHideForPlayer(playerid,RBorder);
TextDrawHideForPlayer(playerid,BBorder);
TextDrawHideForPlayer(playerid,TBorder);
TextDrawHideForPlayer(playerid,SpeedShow[playerid]);
TextDrawHideForPlayer(playerid,Fuel);
TextDrawHideForPlayer(playerid,FuelShow[playerid]);
TextDrawHideForPlayer(playerid,Status);
TextDrawHideForPlayer(playerid,StatusShow[playerid]);
TextDrawHideForPlayer(playerid,KMShow[playerid]);
TextDrawHideForPlayer(playerid,FillShow[playerid]);
TextDrawHideForPlayer(playerid,MaxShow[playerid]);
Arrester[playerid] = false;
}
}
И к ним добовляйте:
Code: Select all
TextDrawShowForPlayer(playerid,LBorder);
TextDrawShowForPlayer(playerid,RBorder);
TextDrawShowForPlayer(playerid,BBorder);
TextDrawShowForPlayer(playerid,TBorder);
TextDrawHideForPlayer(playerid,LBorder);
TextDrawHideForPlayer(playerid,RBorder);
TextDrawHideForPlayer(playerid,BBorder);
TextDrawHideForPlayer(playerid,TBorder);