Добро пожаловать на Pro Pawn - Портал о PAWN-скриптинге.

Реклама


**Как получить V.I.P** (Перейти)
Чтобы заказать рекламу на Pro-Pawn.Ru, обращайтесь в Skype.
Баннерная реклама 200руб/мес, Текстовая 100руб/мес.
Показано с 1 по 1 из 1
  1. #1
    Аватар для Geebrox
    Пользователь

    Статус
    Оффлайн
    Регистрация
    24.08.2015
    Адрес
    Ташкент
    Сообщений
    269
    Репутация:
    73 ±

    TextDraws of speedometer

    Представляю вашему внимание нарисованный мною текстдравы спидометра

    Скрин:

      Открыть/закрыть


    Код:

    Global textdraws:
      Открыть/закрыть
    PHP код:
    new Text:TD_speedometer[5];

    TD_speedometer[0] = TextDrawCreate(620.000000355.000000"usebox");
    TextDrawLetterSize(TD_speedometer[0], 0.0000008.500000);
    TextDrawTextSize(TD_speedometer[0], 470.0000000.000000);
    TextDrawAlignment(TD_speedometer[0], 1);
    TextDrawColor(TD_speedometer[0], 0);
    TextDrawUseBox(TD_speedometer[0], true);
    TextDrawBoxColor(TD_speedometer[0], 102);
    TextDrawSetShadow(TD_speedometer[0], 0);
    TextDrawSetOutline(TD_speedometer[0], 0);
    TextDrawFont(TD_speedometer[0], 0);

    TD_speedometer[1] = TextDrawCreate(471.700012353.000000"LD_SPAC:white");
    TextDrawLetterSize(TD_speedometer[1], 0.0000000.000000);
    TextDrawTextSize(TD_speedometer[1], 146.50000017.000000);
    TextDrawAlignment(TD_speedometer[1], 1);
    TextDrawColor(TD_speedometer[1], -2147483393);
    TextDrawSetShadow(TD_speedometer[1], 0);
    TextDrawSetOutline(TD_speedometer[1], 0);
    TextDrawFont(TD_speedometer[1], 4);

    TD_speedometer[2] = TextDrawCreate(544.000000354.399993"Vehicle_Name");
    TextDrawLetterSize(TD_speedometer[2], 0.3499991.399999);
    TextDrawAlignment(TD_speedometer[2], 2);
    TextDrawColor(TD_speedometer[2], -1);
    TextDrawUseBox(TD_speedometer[2], true);
    TextDrawBoxColor(TD_speedometer[2], -256);
    TextDrawSetShadow(TD_speedometer[2], 0);
    TextDrawSetOutline(TD_speedometer[2], 0);
    TextDrawBackgroundColor(TD_speedometer[2], -1);
    TextDrawFont(TD_speedometer[2], 1);
    TextDrawSetProportional(TD_speedometer[2], 1);

    TD_speedometer[3] = TextDrawCreate(475.000000371.000000"Speed: Fuel: Health: Millaege:");
    TextDrawLetterSize(TD_speedometer[3], 0.3000001.200000);
    TextDrawAlignment(TD_speedometer[3], 1);
    TextDrawColor(TD_speedometer[3], -1);
    TextDrawUseBox(TD_speedometer[3], true);
    TextDrawBoxColor(TD_speedometer[3], 0);
    TextDrawSetShadow(TD_speedometer[3], 0);
    TextDrawSetOutline(TD_speedometer[3], 0);
    TextDrawBackgroundColor(TD_speedometer[3], 51);
    TextDrawFont(TD_speedometer[3], 2);
    TextDrawSetProportional(TD_speedometer[3], 1);

    TD_speedometer[4] = TextDrawCreate(544.000000418.000000"Engine_______Lamps_______Doors");
    TextDrawLetterSize(TD_speedometer[4], 0.3000001.200000);
    TextDrawAlignment(TD_speedometer[4], 2);
    TextDrawColor(TD_speedometer[4], -1);
    TextDrawSetShadow(TD_speedometer[4], 0);
    TextDrawSetOutline(TD_speedometer[4], 0);
    TextDrawBackgroundColor(TD_speedometer[4], 51);
    TextDrawFont(TD_speedometer[4], 1);
    TextDrawSetProportional(TD_speedometer[4], 1); 


    Player textdraws:
      Открыть/закрыть
    PHP код:
    new PlayerText:PTD_speedometer[MAX_PLAYERS][7];

    PTD_speedometer[playerid][0] = CreatePlayerTextDraw(playerid475.000000418.000000"LD_SPAC:white");
    PlayerTextDrawLetterSize(playeridPTD_speedometer[playerid][0], 0.0000000.000000);
    PlayerTextDrawTextSize(playeridPTD_speedometer[playerid][0], 45.00000012.000000);
    PlayerTextDrawAlignment(playeridPTD_speedometer[playerid][0], 1);
    PlayerTextDrawColor(playeridPTD_speedometer[playerid][0], 785150463);
    PlayerTextDrawSetShadow(playeridPTD_speedometer[playerid][0], 0);
    PlayerTextDrawSetOutline(playeridPTD_speedometer[playerid][0], 0);
    PlayerTextDrawFont(playeridPTD_speedometer[playerid][0], 4);

    PTD_speedometer[playerid][1] = CreatePlayerTextDraw(playerid522.500000418.000000"LD_SPAC:white");
    PlayerTextDrawLetterSize(playeridPTD_speedometer[playerid][1], 0.0000000.000000);
    PlayerTextDrawTextSize(playeridPTD_speedometer[playerid][1], 45.00000012.000000);
    PlayerTextDrawAlignment(playeridPTD_speedometer[playerid][1], 1);
    PlayerTextDrawColor(playeridPTD_speedometer[playerid][1], -1069995009);
    PlayerTextDrawSetShadow(playeridPTD_speedometer[playerid][1], 0);
    PlayerTextDrawSetOutline(playeridPTD_speedometer[playerid][1], 0);
    PlayerTextDrawFont(playeridPTD_speedometer[playerid][1], 4);

    PTD_speedometer[playerid][2] = CreatePlayerTextDraw(playerid570.000000418.000000"LD_SPAC:white");
    PlayerTextDrawLetterSize(playeridPTD_speedometer[playerid][2], 0.0000000.000000);
    PlayerTextDrawTextSize(playeridPTD_speedometer[playerid][2], 45.00000012.000000);
    PlayerTextDrawAlignment(playeridPTD_speedometer[playerid][2], 1);
    PlayerTextDrawColor(playeridPTD_speedometer[playerid][2], 785150463);
    PlayerTextDrawSetShadow(playeridPTD_speedometer[playerid][2], 0);
    PlayerTextDrawSetOutline(playeridPTD_speedometer[playerid][2], 0);
    PlayerTextDrawFont(playeridPTD_speedometer[playerid][2], 4);

    PTD_speedometer[playerid][3] = CreatePlayerTextDraw(playerid615.000000370.200012"100_km/h");
    PlayerTextDrawLetterSize(playeridPTD_speedometer[playerid][3], 0.3000001.200000);
    PlayerTextDrawAlignment(playeridPTD_speedometer[playerid][3], 3);
    PlayerTextDrawColor(playeridPTD_speedometer[playerid][3], 696302079);
    PlayerTextDrawSetShadow(playeridPTD_speedometer[playerid][3], 0);
    PlayerTextDrawSetOutline(playeridPTD_speedometer[playerid][3], 0);
    PlayerTextDrawBackgroundColor(playeridPTD_speedometer[playerid][3], 696302079);
    PlayerTextDrawFont(playeridPTD_speedometer[playerid][3], 2);
    PlayerTextDrawSetProportional(playeridPTD_speedometer[playerid][3], 1);

    PTD_speedometer[playerid][4] = CreatePlayerTextDraw(playerid615.000000381.399993"50L");
    PlayerTextDrawLetterSize(playeridPTD_speedometer[playerid][4], 0.3000001.200000);
    PlayerTextDrawAlignment(playeridPTD_speedometer[playerid][4], 3);
    PlayerTextDrawColor(playeridPTD_speedometer[playerid][4], 696302079);
    PlayerTextDrawSetShadow(playeridPTD_speedometer[playerid][4], 0);
    PlayerTextDrawSetOutline(playeridPTD_speedometer[playerid][4], 0);
    PlayerTextDrawBackgroundColor(playeridPTD_speedometer[playerid][4], 696302079);
    PlayerTextDrawFont(playeridPTD_speedometer[playerid][4], 2);
    PlayerTextDrawSetProportional(playeridPTD_speedometer[playerid][4], 1);

    PTD_speedometer[playerid][5] = CreatePlayerTextDraw(playerid615.000000392.000000"99.9");
    PlayerTextDrawLetterSize(playeridPTD_speedometer[playerid][5], 0.3000001.200000);
    PlayerTextDrawAlignment(playeridPTD_speedometer[playerid][5], 3);
    PlayerTextDrawColor(playeridPTD_speedometer[playerid][5], 696302079);
    PlayerTextDrawSetShadow(playeridPTD_speedometer[playerid][5], 0);
    PlayerTextDrawSetOutline(playeridPTD_speedometer[playerid][5], 0);
    PlayerTextDrawBackgroundColor(playeridPTD_speedometer[playerid][5], 696302079);
    PlayerTextDrawFont(playeridPTD_speedometer[playerid][5], 2);
    PlayerTextDrawSetProportional(playeridPTD_speedometer[playerid][5], 1);

    PTD_speedometer[playerid][6] = CreatePlayerTextDraw(playerid615.000000402.799987"13.13km");
    PlayerTextDrawLetterSize(playeridPTD_speedometer[playerid][6], 0.3000001.200000);
    PlayerTextDrawAlignment(playeridPTD_speedometer[playerid][6], 3);
    PlayerTextDrawColor(playeridPTD_speedometer[playerid][6], 696302079);
    PlayerTextDrawSetShadow(playeridPTD_speedometer[playerid][6], 0);
    PlayerTextDrawSetOutline(playeridPTD_speedometer[playerid][6], 0);
    PlayerTextDrawBackgroundColor(playeridPTD_speedometer[playerid][6], 696302079);
    PlayerTextDrawFont(playeridPTD_speedometer[playerid][6], 2);
    PlayerTextDrawSetProportional(playeridPTD_speedometer[playerid][6], 1); 







    Последний раз редактировалось Geebrox; 14.07.2016 в 23:13.

  2. Пользователь сказал cпасибо:
    Иван Бубнов (22.12.2016)
 

 

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •