Sign in to follow this  
Followers 0
Aurum

Красивый спидометр :D

6 posts in this topic

Здравствуйте.

Выкладываю очередную свою работу.

Она не пыльная, но довольно красивая ( Надеюсь ).

Скрин: <клац>

 

Не выкладываю готовое решение с объяснением, т.к нет времени.

Знающие знают, не знающим помогут.

 

Код спидометра:


//Player Textdraws:

new PlayerText:Textdraw0[MAX_PLAYERS];
new PlayerText:Textdraw1[MAX_PLAYERS];
new PlayerText:Textdraw2[MAX_PLAYERS];
new PlayerText:Textdraw3[MAX_PLAYERS];
new PlayerText:Textdraw4[MAX_PLAYERS];
new PlayerText:Textdraw5[MAX_PLAYERS];
new PlayerText:Textdraw6[MAX_PLAYERS];
new PlayerText:Textdraw7[MAX_PLAYERS];
new PlayerText:Textdraw8[MAX_PLAYERS];
new PlayerText:Textdraw9[MAX_PLAYERS];
new PlayerText:Textdraw10[MAX_PLAYERS];
new PlayerText:Textdraw11[MAX_PLAYERS];
new PlayerText:Textdraw12[MAX_PLAYERS];


Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 469.646820, 349.416656, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 151.058807, 78.750000);
PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 4);

Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 476.705780, 372.166534, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw1[playerid], 135.999984, -0.583322);
PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw1[playerid], 255);
PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw1[playerid], 4);

Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 476.705993, 393.750000, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw2[playerid], 136.470565, 0.583323);
PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw2[playerid], 255);
PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw2[playerid], 4);

Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 477.176544, 400.749969, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw3[playerid], 37.647056, 22.750000);
PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw3[playerid], 1097457920);
PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw3[playerid], 4);

Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 526.588134, 400.749938, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw4[playerid], 37.647048, 22.750000);
PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw4[playerid], 1097457920);
PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw4[playerid], 4);

Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 575.999877, 400.750000, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 37.176483, 22.750000);
PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw5[playerid], 1097457920);
PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw5[playerid], 4);

Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 478.117553, 359.333312, "speed:");
PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.255646, 1.250000);
PlayerTextDrawAlignment(playerid, Textdraw6[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw6[playerid], 255);
PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw6[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw6[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw6[playerid], 1);

Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 479.529296, 381.500000, "fuel:");
PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.321999, 1.279167);
PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw7[playerid], 255);
PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw7[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw7[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw7[playerid], 1);

Textdraw8[playerid] = CreatePlayerTextDraw(playerid, 593.411376, 359.333374, "000");
PlayerTextDrawLetterSize(playerid, Textdraw8[playerid], 0.226470, 1.244166);
PlayerTextDrawAlignment(playerid, Textdraw8[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw8[playerid], 255);
PlayerTextDrawSetShadow(playerid, Textdraw8[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw8[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw8[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw8[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw8[playerid], 1);

Textdraw9[playerid] = CreatePlayerTextDraw(playerid, 594.352844, 380.916625, "000");
PlayerTextDrawLetterSize(playerid, Textdraw9[playerid], 0.213764, 1.413332);
PlayerTextDrawAlignment(playerid, Textdraw9[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw9[playerid], 255);
PlayerTextDrawSetShadow(playerid, Textdraw9[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw9[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw9[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw9[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw9[playerid], 1);

Textdraw10[playerid] = CreatePlayerTextDraw(playerid, 479.999969, 403.666625, "DOOR");
PlayerTextDrawLetterSize(playerid, Textdraw10[playerid], 0.264117, 1.541666);
PlayerTextDrawAlignment(playerid, Textdraw10[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw10[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw10[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw10[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw10[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw10[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw10[playerid], 1);

Textdraw11[playerid] = CreatePlayerTextDraw(playerid, 529.411804, 403.083312, "ENGINE");
PlayerTextDrawLetterSize(playerid, Textdraw11[playerid], 0.218470, 1.728333);
PlayerTextDrawAlignment(playerid, Textdraw11[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw11[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw11[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw11[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw11[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw11[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw11[playerid], 1);

Textdraw12[playerid] = CreatePlayerTextDraw(playerid, 579.294189, 403.083374, "LIGHTS");
PlayerTextDrawLetterSize(playerid, Textdraw12[playerid], 0.213764, 1.617500);
PlayerTextDrawAlignment(playerid, Textdraw12[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw12[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw12[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw12[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw12[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw12[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw12[playerid], 1);

Мона плюсык пж пж пж пж пж *_*

Заметка от Guest , создано

Не забывайте брать код под спойлер, так как он больше 10 строк!

Share this post


Link to post
Share on other sites

опять ж цвета подбирай лучше :/

Share this post


Link to post
Share on other sites
3 часа назад, MuhammadPawn сказал:

опять ж цвета подбирай лучше :/

Ну... я постараюсь :D

Share this post


Link to post
Share on other sites

> Рослякову

Я взял код под код. Кажется все правильно, не?

Share this post


Link to post
Share on other sites
8 минут назад, DEST сказал:

Вас понял :$

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

Loading...
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • green177117
      By green177117
      Здравствуйте! Прошу вашей помощи,на форуме смотрел...Не нашел ответ на вопрос! Суть такова что в моде "SAMP" слетают дома/,бизнесы после рестарта! То есть купил дом.бизнес игрок и после рестарта сервера он слетает в госс...(ДОМ/Бизнес) В базе данных после рестарта тоже не сохраняет! Предоставлю код который нужно! Прошу помочь пожалуйста где и как что исправлять...Сам новичок в этом просто. Спасибо!
       
    • Sweet_Roza
      By Sweet_Roza
       
      C:\Users\Kirillll\Desktop\hype rp\pawno\include\anticheat.inc(516) : warning 219: local variable "vel_x" shadows a variable at a preceding level
      C:\Users\Kirillll\Desktop\hype rp\pawno\include\anticheat.inc(516) : warning 219: local variable "vel_y" shadows a variable at a preceding level
      C:\Users\Kirillll\Desktop\hype rp\pawno\include\anticheat.inc(516) : warning 219: local variable "vel_z" shadows a variable at a preceding level
      C:\Users\Kirillll\Desktop\hype rp\pawno\include\anticheat.inc(588) : error 017: undefined symbol "p_info"
      C:\Users\Kirillll\Desktop\hype rp\pawno\include\anticheat.inc(588) : warning 215: expression has no effect
      C:\Users\Kirillll\Desktop\hype rp\pawno\include\anticheat.inc(588) : error 001: expected token: ";", but found "]"
      C:\Users\Kirillll\Desktop\hype rp\pawno\include\anticheat.inc(588) : error 029: invalid expression, assumed zero
      C:\Users\Kirillll\Desktop\hype rp\pawno\include\anticheat.inc(588) : fatal error 107: too many error messages on one line

      Compilation aborted.

      Pawn compiler 3.2.3664 Copyright © 1997-2017, ITB CompuPhase


      4 Errors.

      Хз уже 2 дня немогу понять из-за чего варнинги и ерроры если начинаю чтото исправлять то окно компиляцие просто пустое мод где-то на 51+-к строк
      кто знает и разберается помогите пожалуйста   вот код где ошибка    new g_organization[28][E_ORG_DATA] = { {"МВД Г. Южный", {2889.0100,1494.4646,1551.9464, 0.00}, 1, 0}, {"ФСБ", {2883.9924,2010.5411,2050.9980, 89.160011}, 1}, {"NONE", {725.909912, -1299.934326, 1102.000000, 85.492195}, 15, 3}, {"NONE", {1158.368408, -1336.018432, 4001.100097, 0.391671}, 1, 1}, {"Батыревская братва", {-1.6843,503.1978,1381.0022, 1.889998}, 1, 4}, {"Арзамаская ОПГ", {-1.6843,503.1978,1381.0022, 1.889998}, 1, 2}, {"Мэрия", {956.2804,9.3513,1381.0035, 310.307495}, 1, 1}, //meriazamn {"NONE", {000.000, 000.000, 000.000, 000.000}, -1, -1}, {"NONE", {000.000, 000.000, 000.000, 000.000}, -1, -1}, {"NONE", {225.164703, 121.044197, 999.078552, 89.073303}, 10, 0}, {"NONE", {-790.541198, 1555.099121, 1139.236938, 270.535888}, 1, 0}, {"NONE", {-61.298400, 1364.584716, 1080.210937, 100.000000}, 6, 34}, {"NONE", {303.630004, 309.250000, 999.148437, 263.049713}, 4, 75}, {"Лыткаринская ОПГ", {-1.6843,503.1978,1381.0022, 1.889998}, 1, 3}, {"NONE", {2496.012939, -1708.923217, 1014.742187, 0.191797}, 3, 1}, {"ТРК Ритм", {1981.1987,15.5430,1381.0035, -89.170898}, 1, 1}, {"NONE", {-49.755798, 1400.355346, 1084.429687, 90.424797}, 8, 36}, {"NONE", {-224.098907, 1410.445800, 27.773437, 89.287391}, 18, 63}, {"Армия Сухопутные войска", {2903.7275,1417.9414,1050.9978, 85.492195}, 1, 0}, {"NONE", {000.000, 000.000, 000.000, 000.000}, -1, -1}, {"NONE", {211.363601, 184.311294, 1003.031250, 174.357910}, 3, 122}, {"NONE", {000.000, 000.000, 000.000, 000.000}, -1, -1}, {"Хитманы", {-1.6843,503.1978,1381.0022, 89.666389}, 1, 1}, {"Стритрейсеры", {-227.4272,453.0845,12.8854, 316.816314}, 0, 0}, {"NONE", {211.786605, 142.404800, 1003.023437, 269.212799}, 3, 0}, {"NONE", {-806.013610, -672.316711, 4004.740478, 357.578186}, 1, 0}, {"NONE", {1950.792358, 1059.626098, 994.468750, 167.393981}, 10, 50}, {"NONE", {2151.969238, 1597.348266, 1006.176147, 359.832153}, 1, 51} };  
    • php34
      By php34
      Привет, у меня есть файлы грин-теч рп (Модели, маппинг, кар-пак, скин-пак) и я хочу все это сделать как мод-пак для 0.3е (если не получится то сборку)
      Если я все это скину в один img файл то будет ли все это работать?
      upd: Запустил маппинг как мод-пак (mp_gr-pack.imp/ipl/ide) выдало краш
       
    • Vova_Zenko
      By Vova_Zenko
      Приветствую Вас форумчане.
      Ищу человека, который поможет мне сделать мигалки как в реальной жизни
    • php34
      By php34
      Получил готовый сервер для CRMP 0.3e , но не могу запустить на локалке из за того что в plugins нет mysql.dll, есть только .so
      Ставил другие версии, но при компиляции мода появлялись 26 варнингов 035 (до этого все было чисто)
      что делать?