Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Обводка спидометра Samp-RP

Статус
В этой теме нельзя размещать новые ответы.

#Nurik

Умник
в Define's
PHP:
#define COLOR_BORDER            0x00000AA
[HR][/HR]
Ко всем new:
PHP:
newText:LBorder;
new Text:RBorder;
new Text:BBorder;
new Text:TBorder;
[HR][/HR]
В public OnGameModeInit()
PHP:
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);
[HR][/HR]
В public OnPlayerStateChange(playerid, newstate, oldstate)
Ищите типо таких строк
PHP:
if(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;
        }
    }
И к ним добовляйте:
PHP:
TextDrawShowForPlayer(playerid,LBorder);
             	TextDrawShowForPlayer(playerid,RBorder);
             	TextDrawShowForPlayer(playerid,BBorder);
             	TextDrawShowForPlayer(playerid,TBorder);
PHP:
TextDrawHideForPlayer(playerid,LBorder);
            TextDrawHideForPlayer(playerid,RBorder);
            TextDrawHideForPlayer(playerid,BBorder);
            TextDrawHideForPlayer(playerid,TBorder);
[HR][/HR]
Скоиншот:
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу