Vlad_Strong
Ученик
Добрый день,всем пользователям P-I.
От безделья накидал Textdraw спидометра на скорую руку.
Может кому-нибудь пригодится.
Время работы: 10 минут
Скрин:
Код:
Ко всем new
От безделья накидал Textdraw спидометра на скорую руку.
Может кому-нибудь пригодится.
Время работы: 10 минут
Скрин:
Код:
Ко всем new
PHP:
new Text:SPEED[9];
new PlayerText:SPEEDVEH[MAX_PLAYERS][6];
Глобальные текстравы:
PHP:
SPEED[0] = TextDrawCreate(632.629516, 437.250030, "usebox");
TextDrawLetterSize(SPEED[0], 0.000000, -8.710557);
TextDrawTextSize(SPEED[0], 500.254791, 0.000000);
TextDrawAlignment(SPEED[0], 1);
TextDrawColor(SPEED[0], 0);
TextDrawUseBox(SPEED[0], true);
TextDrawBoxColor(SPEED[0], 255);
TextDrawSetShadow(SPEED[0], 0);
TextDrawSetOutline(SPEED[0], 0);
TextDrawFont(SPEED[0], 0);
SPEED[1] = TextDrawCreate(548.764221, 366.666625, "usebox");
TextDrawLetterSize(SPEED[1], 0.000000, 4.738888);
TextDrawTextSize(SPEED[1], 502.597381, 0.000000);
TextDrawAlignment(SPEED[1], 1);
TextDrawColor(SPEED[1], 0);
TextDrawUseBox(SPEED[1], true);
TextDrawBoxColor(SPEED[1], -65281);
TextDrawSetShadow(SPEED[1], 0);
TextDrawSetOutline(SPEED[1], 0);
TextDrawFont(SPEED[1], 0);
SPEED[2] = TextDrawCreate(629.818481, 366.666625, "usebox");
TextDrawLetterSize(SPEED[2], 0.000000, 1.887034);
TextDrawTextSize(SPEED[2], 547.575378, 0.000000);
TextDrawAlignment(SPEED[2], 1);
TextDrawColor(SPEED[2], 0);
TextDrawUseBox(SPEED[2], true);
TextDrawBoxColor(SPEED[2], -65281);
TextDrawSetShadow(SPEED[2], 0);
TextDrawSetOutline(SPEED[2], 0);
TextDrawFont(SPEED[2], 0);
SPEED[3] = TextDrawCreate(629.818420, 390.583282, "usebox");
TextDrawLetterSize(SPEED[3], 0.000000, 1.998706);
TextDrawTextSize(SPEED[3], 547.575378, 0.000000);
TextDrawAlignment(SPEED[3], 1);
TextDrawColor(SPEED[3], 0);
TextDrawUseBox(SPEED[3], true);
TextDrawBoxColor(SPEED[3], -65281);
TextDrawSetShadow(SPEED[3], 0);
TextDrawSetOutline(SPEED[3], 0);
TextDrawFont(SPEED[3], 0);
SPEED[4] = TextDrawCreate(629.818481, 416.249969, "usebox");
TextDrawLetterSize(SPEED[4], 0.000000, 1.516113);
TextDrawTextSize(SPEED[4], 502.597351, 0.000000);
TextDrawAlignment(SPEED[4], 1);
TextDrawColor(SPEED[4], 0);
TextDrawUseBox(SPEED[4], true);
TextDrawBoxColor(SPEED[4], -65281);
TextDrawSetShadow(SPEED[4], 0);
TextDrawSetOutline(SPEED[4], 0);
TextDrawFont(SPEED[4], 0);
SPEED[5] = TextDrawCreate(508.813995, 390.249969, "km/h");
TextDrawLetterSize(SPEED[5], 0.345519, 1.920833);
TextDrawAlignment(SPEED[5], 1);
TextDrawColor(SPEED[5], -1061109505);
TextDrawSetShadow(SPEED[5], 0);
TextDrawSetOutline(SPEED[5], 1);
TextDrawBackgroundColor(SPEED[5], 255);
TextDrawFont(SPEED[5], 2);
TextDrawSetProportional(SPEED[5], 1);
SPEED[6] = TextDrawCreate(507.877441, 414.166687, "lights");
TextDrawLetterSize(SPEED[6], 0.257905, 1.646667);
TextDrawAlignment(SPEED[6], 1);
TextDrawColor(SPEED[6], -1061109505);
TextDrawUseBox(SPEED[6], true);
TextDrawBoxColor(SPEED[6], 0);
TextDrawSetShadow(SPEED[6], 0);
TextDrawSetOutline(SPEED[6], 1);
TextDrawBackgroundColor(SPEED[6], 255);
TextDrawFont(SPEED[6], 2);
TextDrawSetProportional(SPEED[6], 1);
SPEED[7] = TextDrawCreate(550.981323, 414.166656, "doors");
TextDrawLetterSize(SPEED[7], 0.251815, 1.675833);
TextDrawAlignment(SPEED[7], 1);
TextDrawColor(SPEED[7], -1061109505);
TextDrawSetShadow(SPEED[7], 0);
TextDrawSetOutline(SPEED[7], 1);
TextDrawBackgroundColor(SPEED[7], 255);
TextDrawFont(SPEED[7], 2);
TextDrawSetProportional(SPEED[7], 1);
SPEED[8] = TextDrawCreate(590.805603, 414.166687, "engine");
TextDrawLetterSize(SPEED[8], 0.245256, 1.728333);
TextDrawAlignment(SPEED[8], 1);
TextDrawColor(SPEED[8], -1061109505);
TextDrawSetShadow(SPEED[8], 0);
TextDrawSetOutline(SPEED[8], 1);
TextDrawBackgroundColor(SPEED[8], 255);
TextDrawFont(SPEED[8], 2);
TextDrawSetProportional(SPEED[8], 1);
Индивидуальные тестдравы
PHP:
SPEEDVEH[playerid][0] = CreatePlayerTextDraw(playerid,508.814056, 362.833282, "300");
PlayerTextDrawLetterSize(playerid,SPEEDVEH[playerid][0], 0.453748, 2.655833);
PlayerTextDrawAlignment(playerid,SPEEDVEH[playerid][0], 1);
PlayerTextDrawColor(playerid,SPEEDVEH[playerid][0], -1061109505);
PlayerTextDrawSetShadow(playerid,SPEEDVEH[playerid][0], 0);
PlayerTextDrawSetOutline(playerid,SPEEDVEH[playerid][0], 1);
PlayerTextDrawBackgroundColor(playerid,SPEEDVEH[playerid][0], 255);
PlayerTextDrawFont(playerid,SPEEDVEH[playerid][0], 2);
PlayerTextDrawSetProportional(playerid,SPEEDVEH[playerid][0], 1);
SPEEDVEH[playerid][1] = CreatePlayerTextDraw(playerid,551.917968, 366.333343, "fuel:100");
PlayerTextDrawLetterSize(playerid,SPEEDVEH[playerid][1], 0.416266, 1.652500);
PlayerTextDrawAlignment(playerid,SPEEDVEH[playerid][1], 1);
PlayerTextDrawColor(playerid,SPEEDVEH[playerid][1], -1061109505);
PlayerTextDrawSetShadow(playerid,SPEEDVEH[playerid][1], 0);
PlayerTextDrawSetOutline(playerid,SPEEDVEH[playerid][1], 1);
PlayerTextDrawBackgroundColor(playerid,SPEEDVEH[playerid][1], 255);
PlayerTextDrawFont(playerid,SPEEDVEH[playerid][1], 2);
PlayerTextDrawSetProportional(playerid,SPEEDVEH[playerid][1], 1);
SPEEDVEH[playerid][2] = CreatePlayerTextDraw(playerid,551.449340, 390.833343, "heal:100");
PlayerTextDrawLetterSize(playerid,SPEEDVEH[playerid][2], 0.402210, 1.722501);
PlayerTextDrawAlignment(playerid,SPEEDVEH[playerid][2], 1);
PlayerTextDrawColor(playerid,SPEEDVEH[playerid][2], -1061109505);
PlayerTextDrawSetShadow(playerid,SPEEDVEH[playerid][2], 0);
PlayerTextDrawSetOutline(playerid,SPEEDVEH[playerid][2], 1);
PlayerTextDrawBackgroundColor(playerid,SPEEDVEH[playerid][2], 255);
PlayerTextDrawFont(playerid,SPEEDVEH[playerid][2], 2);
PlayerTextDrawSetProportional(playerid,SPEEDVEH[playerid][2], 1);
SPEEDVEH[playerid][3] = CreatePlayerTextDraw(playerid,548.295715, 417.416687, "usebox");
PlayerTextDrawLetterSize(playerid,SPEEDVEH[playerid][3], 0.000000, 1.238888);
PlayerTextDrawTextSize(playerid,SPEEDVEH[playerid][3], 504.002929, 0.000000);
PlayerTextDrawAlignment(playerid,SPEEDVEH[playerid][3], 1);
PlayerTextDrawColor(playerid,SPEEDVEH[playerid][3], 0);
PlayerTextDrawUseBox(playerid,SPEEDVEH[playerid][3], true);
PlayerTextDrawBoxColor(playerid,SPEEDVEH[playerid][3], 16711935);
PlayerTextDrawSetShadow(playerid,SPEEDVEH[playerid][3], 0);
PlayerTextDrawSetOutline(playerid,SPEEDVEH[playerid][3], 0);
PlayerTextDrawFont(playerid,SPEEDVEH[playerid][3], 0);
SPEEDVEH[playerid][4] = CreatePlayerTextDraw(playerid,588.588500, 417.416687, "usebox");
PlayerTextDrawLetterSize(playerid,SPEEDVEH[playerid][4], 0.000000, 1.238888);
PlayerTextDrawTextSize(playerid,SPEEDVEH[playerid][4], 547.106811, 0.000000);
PlayerTextDrawAlignment(playerid,SPEEDVEH[playerid][4], 1);
PlayerTextDrawColor(playerid,SPEEDVEH[playerid][4], 0);
PlayerTextDrawUseBox(playerid,SPEEDVEH[playerid][4], true);
PlayerTextDrawBoxColor(playerid,SPEEDVEH[playerid][4], -16776961);
PlayerTextDrawSetShadow(playerid,SPEEDVEH[playerid][4], 0);
PlayerTextDrawSetOutline(playerid,SPEEDVEH[playerid][4], 0);
PlayerTextDrawFont(playerid,SPEEDVEH[playerid][4], 0);
SPEEDVEH[playerid][5] = CreatePlayerTextDraw(playerid,628.412902, 417.416687, "usebox");
PlayerTextDrawLetterSize(playerid,SPEEDVEH[playerid][5], 0.000000, 1.238888);
PlayerTextDrawTextSize(playerid,SPEEDVEH[playerid][5], 587.399719, 0.000000);
PlayerTextDrawAlignment(playerid,SPEEDVEH[playerid][5], 1);
PlayerTextDrawColor(playerid,SPEEDVEH[playerid][5], 0);
PlayerTextDrawUseBox(playerid,SPEEDVEH[playerid][5], true);
PlayerTextDrawBoxColor(playerid,SPEEDVEH[playerid][5], 16711935);
PlayerTextDrawSetShadow(playerid,SPEEDVEH[playerid][5], 0);
PlayerTextDrawSetOutline(playerid,SPEEDVEH[playerid][5], 0);
PlayerTextDrawFont(playerid,SPEEDVEH[playerid][5], 0);
