Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Clock speedometer v1.0 by Daddy Yankee.
- // Do NOT re-release.
- #define FILTERSCRIPT
- #include <a_samp>
- forward CreateSpeedo(playerid);
- forward DestroySpeedo(playerid);
- forward CheckGas();
- new PlayerText:speedo1[MAX_PLAYERS];
- new PlayerText:speedo2[MAX_PLAYERS];
- new PlayerText:LinesBig[MAX_PLAYERS][14];
- new PlayerText:MPH[MAX_PLAYERS][14];
- new PlayerText:Dots[MAX_PLAYERS][21];
- new PlayerText:kmh[MAX_PLAYERS][11];
- new PlayerText:MPHT[MAX_PLAYERS];
- new PlayerText:kmhT[MAX_PLAYERS];
- new PlayerText:LinesSmall[MAX_PLAYERS][13];
- new PlayerText:Spee[MAX_PLAYERS][14];
- new PlayerText:Spee2[MAX_PLAYERS][4];
- new PlayerText:fuel3[MAX_PLAYERS];
- new PlayerText:fuel1[MAX_PLAYERS];
- new PlayerText:fuel2[MAX_PLAYERS];
- new PlayerText:FuelBar[MAX_PLAYERS][7];
- new PlayerText:LinesFuel[MAX_PLAYERS][8];
- new PlayerText:Circles[MAX_PLAYERS][8];
- new Float:oldspeed[MAX_PLAYERS];
- new Gas[MAX_VEHICLES];
- new checkgastimer;
- public CreateSpeedo(playerid)
- {
- new vehid = GetPlayerVehicleID(playerid);
- speedo2[playerid] = CreatePlayerTextDraw(playerid, 368.000000, 253.000000+35.0, "_");
- PlayerTextDrawFont(playerid, speedo2[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, speedo2[playerid], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, speedo2[playerid], 19159);
- PlayerTextDrawTextSize(playerid, speedo2[playerid], 165.0, 175.0);
- PlayerTextDrawSetPreviewRot(playerid, speedo2[playerid], 90.0, 0.0, 0.0, 0.505);
- PlayerTextDrawColor(playerid, speedo2[playerid], 0x00000055);
- speedo1[playerid] = CreatePlayerTextDraw(playerid, 368.000000, 253.000000+35.0, "_");
- PlayerTextDrawFont(playerid, speedo1[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, speedo1[playerid], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, speedo1[playerid], 19159);
- PlayerTextDrawTextSize(playerid, speedo1[playerid], 165.0, 175.0);
- PlayerTextDrawSetPreviewRot(playerid, speedo1[playerid], 90.0, 0.0, 0.0, 4.2);
- PlayerTextDrawColor(playerid, speedo1[playerid], 0x000000FF);
- PlayerTextDrawShow(playerid, speedo1[playerid]);
- PlayerTextDrawShow(playerid, speedo2[playerid]);
- Circles[playerid][0] = CreatePlayerTextDraw(playerid, 358.000000, 280.000000, "hud:radardisc");
- PlayerTextDrawFont(playerid, Circles[playerid][0], 4);
- PlayerTextDrawLetterSize(playerid, Circles[playerid][0], 0.500000, 1.000000);
- PlayerTextDrawBackgroundColor(playerid, Circles[playerid][0], 0x00000000);
- PlayerTextDrawTextSize(playerid, Circles[playerid][0], 94.0, 94.0);
- PlayerTextDrawColor(playerid, Circles[playerid][0], 0x000000FF);
- PlayerTextDrawShow(playerid, Circles[playerid][0]);
- Circles[playerid][1] = CreatePlayerTextDraw(playerid, 543.000000, 280.000000, "hud:radardisc");
- PlayerTextDrawFont(playerid, Circles[playerid][1], 4);
- PlayerTextDrawLetterSize(playerid, Circles[playerid][1], 0.500000, 1.000000);
- PlayerTextDrawBackgroundColor(playerid, Circles[playerid][1], 0x00000000);
- PlayerTextDrawTextSize(playerid, Circles[playerid][1], -94.0, 94.0);
- PlayerTextDrawColor(playerid, Circles[playerid][1], 0x000000FF);
- PlayerTextDrawShow(playerid, Circles[playerid][1]);
- Circles[playerid][2] = CreatePlayerTextDraw(playerid, 543.000000, 468.000000, "hud:radardisc");
- PlayerTextDrawFont(playerid, Circles[playerid][2], 4);
- PlayerTextDrawLetterSize(playerid, Circles[playerid][2], 0.500000, 1.000000);
- PlayerTextDrawBackgroundColor(playerid, Circles[playerid][2], 0x00000000);
- PlayerTextDrawTextSize(playerid, Circles[playerid][2], -94.0, -94.0);
- PlayerTextDrawColor(playerid, Circles[playerid][2], 0x000000FF);
- PlayerTextDrawShow(playerid, Circles[playerid][2]);
- Circles[playerid][3] = CreatePlayerTextDraw(playerid, 358.000000, 468.000000, "hud:radardisc");
- PlayerTextDrawFont(playerid, Circles[playerid][3], 4);
- PlayerTextDrawLetterSize(playerid, Circles[playerid][3], 0.500000, 1.000000);
- PlayerTextDrawBackgroundColor(playerid, Circles[playerid][3], 0x00000000);
- PlayerTextDrawTextSize(playerid, Circles[playerid][3], 94.0, -94.0);
- PlayerTextDrawColor(playerid, Circles[playerid][3], 0x000000FF);
- PlayerTextDrawShow(playerid, Circles[playerid][3]);
- if(!IsNonFuelVehicle(vehid))
- {
- Circles[playerid][4] = CreatePlayerTextDraw(playerid, 534.000000, 345.000000, "hud:radardisc");
- PlayerTextDrawFont(playerid, Circles[playerid][4], 4);
- PlayerTextDrawLetterSize(playerid, Circles[playerid][4], 0.500000, 1.000000);
- PlayerTextDrawBackgroundColor(playerid, Circles[playerid][4], 0x00000000);
- PlayerTextDrawTextSize(playerid, Circles[playerid][4], 50.0, 50.0);
- PlayerTextDrawColor(playerid, Circles[playerid][4], 0x000000FF);
- PlayerTextDrawShow(playerid, Circles[playerid][4]);
- Circles[playerid][5] = CreatePlayerTextDraw(playerid, 634.000000, 345.000000, "hud:radardisc");
- PlayerTextDrawFont(playerid, Circles[playerid][5], 4);
- PlayerTextDrawLetterSize(playerid, Circles[playerid][5], 0.500000, 1.000000);
- PlayerTextDrawBackgroundColor(playerid, Circles[playerid][6], 0x00000000);
- PlayerTextDrawTextSize(playerid, Circles[playerid][5], -50.0, 50.0);
- PlayerTextDrawColor(playerid, Circles[playerid][5], 0x000000FF);
- PlayerTextDrawShow(playerid, Circles[playerid][5]);
- Circles[playerid][6] = CreatePlayerTextDraw(playerid, 634.000000, 445.000000, "hud:radardisc");
- PlayerTextDrawFont(playerid, Circles[playerid][6], 4);
- PlayerTextDrawLetterSize(playerid, Circles[playerid][6], 0.500000, 1.000000);
- PlayerTextDrawBackgroundColor(playerid, Circles[playerid][6], 0x00000000);
- PlayerTextDrawTextSize(playerid, Circles[playerid][6], -50.0, -50.0);
- PlayerTextDrawColor(playerid, Circles[playerid][6], 0x000000FF);
- PlayerTextDrawShow(playerid, Circles[playerid][6]);
- Circles[playerid][7] = CreatePlayerTextDraw(playerid, 534.000000, 445.000000, "hud:radardisc");
- PlayerTextDrawFont(playerid, Circles[playerid][7], 4);
- PlayerTextDrawLetterSize(playerid, Circles[playerid][7], 0.500000, 1.000000);
- PlayerTextDrawBackgroundColor(playerid, Circles[playerid][7], 0x00000000);
- PlayerTextDrawTextSize(playerid, Circles[playerid][7], 50.0, -50.0);
- PlayerTextDrawColor(playerid, Circles[playerid][7], 0x000000FF);
- PlayerTextDrawShow(playerid, Circles[playerid][7]);
- }
- LinesBig[playerid][0] = CreatePlayerTextDraw(playerid, 386.700000, 382.200000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][0], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][0], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][0], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][0], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][0], 0.0, 41.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][0], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][0], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][0]);
- LinesBig[playerid][1] = CreatePlayerTextDraw(playerid, 374.400000, 358.800000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][1], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][1], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][1], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][1], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][1], 0.0, 20.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][1], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][1], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][1]);
- LinesBig[playerid][2] = CreatePlayerTextDraw(playerid, 370.500000, 332.750000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][2], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][2], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][2], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][2], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][2], 0.0, 0.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][2], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][2], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][2]);
- LinesBig[playerid][3] = CreatePlayerTextDraw(playerid, 375.000000, 306.800000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][3], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][3], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][3], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][3], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][3], 0.0, -21.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][3], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][3], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][3]);
- LinesBig[playerid][4] = CreatePlayerTextDraw(playerid, 388.200000, 283.200000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][4], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][4], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][4], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][4], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][4], 0.0, -42.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][4], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][4], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][4]);
- LinesBig[playerid][5] = CreatePlayerTextDraw(playerid, 408.900000, 265.400000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][5], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][5], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][5], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][5], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][5], 0.0, -63.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][5], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][5], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][5]);
- LinesBig[playerid][6] = CreatePlayerTextDraw(playerid, 434.900000, 256.700000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][6], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][6], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][6], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][6], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][6], 0.0, -84.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][6], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][6], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][6]);
- LinesBig[playerid][7] = CreatePlayerTextDraw(playerid, 463.000000, 258.500000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][7], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][7], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][7], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][7], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][7], 0.0, -105.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][7], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][7], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][7]);
- LinesBig[playerid][8] = CreatePlayerTextDraw(playerid, 487.300000, 271.800000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][8], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][8], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][8], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][8], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][8], 0.0, -126.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][8], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][8], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][8]);
- LinesBig[playerid][9] = CreatePlayerTextDraw(playerid, 505.000000, 292.000000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][9], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][9], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][9], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][9], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][9], 0.0, -147.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][9], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][9], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][9]);
- LinesBig[playerid][10] = CreatePlayerTextDraw(playerid, 514.700000, 316.600000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][10], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][10], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][10], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][10], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][10], 0.0, -168.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][10], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][10], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][10]);
- LinesBig[playerid][11] = CreatePlayerTextDraw(playerid, 515.200000, 343.200000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][11], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][11], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][11], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][11], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][11], 0.0, -189.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][11], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][11], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][11]);
- LinesBig[playerid][12] = CreatePlayerTextDraw(playerid, 508.500000, 368.700000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][12], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][12], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][12], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][12], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][12], 0.0, -210.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][12], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][12], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][12]);
- LinesBig[playerid][13] = CreatePlayerTextDraw(playerid, 492.500000, 390.200000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesBig[playerid][13], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][13], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][13], 19449);
- PlayerTextDrawTextSize(playerid, LinesBig[playerid][13], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][13], 0.0, -231.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesBig[playerid][13], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesBig[playerid][13], 1);
- PlayerTextDrawShow(playerid, LinesBig[playerid][13]);
- MPH[playerid][0] = CreatePlayerTextDraw(playerid, 396.500000, 371.700000+35.0, "10");
- PlayerTextDrawFont(playerid, MPH[playerid][0], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][0], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][0], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][0], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][0], 0.33, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][0]);
- MPH[playerid][1] = CreatePlayerTextDraw(playerid, 388.700000, 353.200000+35.0, "20");
- PlayerTextDrawFont(playerid, MPH[playerid][1], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][1], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][1], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][1], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][1], 0.33, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][1]);
- MPH[playerid][2] = CreatePlayerTextDraw(playerid, 385.000000, 331.800000+35.0, "30");
- PlayerTextDrawFont(playerid, MPH[playerid][2], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][2], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][2], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][2], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][2], 0.33, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][2]);
- MPH[playerid][3] = CreatePlayerTextDraw(playerid, 388.000000, 309.800000+35.0, "40");
- PlayerTextDrawFont(playerid, MPH[playerid][3], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][3], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][3], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][3], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][3], 0.33, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][3]);
- MPH[playerid][4] = CreatePlayerTextDraw(playerid, 399.400000, 291.000000+35.0, "50");
- PlayerTextDrawFont(playerid, MPH[playerid][4], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][4], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][4], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][4], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][4], 0.33, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][4]);
- MPH[playerid][5] = CreatePlayerTextDraw(playerid, 413.400000, 276.900000+35.0, "60");
- PlayerTextDrawFont(playerid, MPH[playerid][5], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][5], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][5], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][5], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][5], 0.33, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][5]);
- MPH[playerid][6] = CreatePlayerTextDraw(playerid, 435.400000, 268.000000+35.0, "70");
- PlayerTextDrawFont(playerid, MPH[playerid][6], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][6], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][6], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][6], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][6], 0.33, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][6]);
- MPH[playerid][7] = CreatePlayerTextDraw(playerid, 459.400000, 270.000000+35.0, "80");
- PlayerTextDrawFont(playerid, MPH[playerid][7], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][7], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][7], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][7], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][7], 0.33, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][7]);
- MPH[playerid][8] = CreatePlayerTextDraw(playerid, 478.000000, 283.000000+35.0, "90");
- PlayerTextDrawFont(playerid, MPH[playerid][8], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][8], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][8], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][8], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][8], 0.33, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][8]);
- MPH[playerid][9] = CreatePlayerTextDraw(playerid, 489.000000, 299.000000+35.0, "100");
- PlayerTextDrawFont(playerid, MPH[playerid][9], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][9], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][9], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][9], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][9], 0.27, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][9]);
- MPH[playerid][10] = CreatePlayerTextDraw(playerid, 498.300000, 317.700000+35.0, "110");
- PlayerTextDrawFont(playerid, MPH[playerid][10], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][10], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][10], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][10], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][10], 0.29, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][10]);
- MPH[playerid][11] = CreatePlayerTextDraw(playerid, 497.500000, 340.000000+35.0, "120");
- PlayerTextDrawFont(playerid, MPH[playerid][11], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][11], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][11], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][11], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][11], 0.27, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][11]);
- MPH[playerid][12] = CreatePlayerTextDraw(playerid, 491.800000, 360.000000+35.0, "130");
- PlayerTextDrawFont(playerid, MPH[playerid][12], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][12], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][12], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][12], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][12], 0.27, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][12]);
- MPH[playerid][13] = CreatePlayerTextDraw(playerid, 486.800000, 378.000000+35.0, "140");
- PlayerTextDrawFont(playerid, MPH[playerid][13], 2);
- PlayerTextDrawBackgroundColor(playerid, MPH[playerid][13], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPH[playerid][13], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPH[playerid][13], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPH[playerid][13], 0.27, 1.60);
- PlayerTextDrawShow(playerid, MPH[playerid][13]);
- MPHT[playerid] = CreatePlayerTextDraw(playerid, 438.00000, 310.500000+35.0, "MPH");
- PlayerTextDrawFont(playerid, MPHT[playerid], 2);
- PlayerTextDrawBackgroundColor(playerid, MPHT[playerid], 0x00000000);
- PlayerTextDrawTextSize(playerid, MPHT[playerid], 14.0, 14.0);
- PlayerTextDrawColor(playerid, MPHT[playerid], 0x80ff02FF);
- PlayerTextDrawLetterSize(playerid, MPHT[playerid], 0.29, 1.60);
- PlayerTextDrawShow(playerid, MPHT[playerid]);
- kmhT[playerid] = CreatePlayerTextDraw(playerid, 439.20000, 355.500000+35.0, "km/h");
- PlayerTextDrawFont(playerid, kmhT[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, kmhT[playerid], 0x00000000);
- PlayerTextDrawTextSize(playerid, kmhT[playerid], 14.0, 14.0);
- PlayerTextDrawColor(playerid, kmhT[playerid], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmhT[playerid], 0.27, 1.42);
- PlayerTextDrawShow(playerid, kmhT[playerid]);
- LinesSmall[playerid][0] = CreatePlayerTextDraw(playerid, 378.400000, 372.000000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][0], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][0], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][0], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][0], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][0], 0.0, 30.5, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][0], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][0], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][0]);
- LinesSmall[playerid][1] = CreatePlayerTextDraw(playerid, 369.600000, 346.500000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][1], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][1], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][1], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][1], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][1], 0.0, 10.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][1], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][1], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][1]);
- LinesSmall[playerid][2] = CreatePlayerTextDraw(playerid, 369.700000, 319.500000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][2], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][2], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][2], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][2], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][2], 0.0, -11.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][2], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][2], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][2]);
- LinesSmall[playerid][3] = CreatePlayerTextDraw(playerid, 378.800000, 294.100000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][3], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][3], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][3], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][3], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][3], 0.0, -32.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][3], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][3], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][3]);
- LinesSmall[playerid][4] = CreatePlayerTextDraw(playerid, 396.700000, 272.000000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][4], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][4], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][4], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][4], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][4], 0.0, -53.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][4], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][4], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][4]);
- LinesSmall[playerid][5] = CreatePlayerTextDraw(playerid, 420.700000, 257.700000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][5], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][5], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][5], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][5], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][5], 0.0, -74.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][5], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][5], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][5]);
- LinesSmall[playerid][6] = CreatePlayerTextDraw(playerid, 449.000000, 254.300000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][6], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][6], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][6], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][6], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][6], 0.0, -95.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][6], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][6], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][6]);
- LinesSmall[playerid][7] = CreatePlayerTextDraw(playerid, 476.500000, 262.200000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][7], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][7], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][7], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][7], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][7], 0.0, -116.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][7], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][7], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][7]);
- LinesSmall[playerid][8] = CreatePlayerTextDraw(playerid, 498.500000, 279.700000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][8], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][8], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][8], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][8], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][8], 0.0, -137.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][8], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][8], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][8]);
- LinesSmall[playerid][9] = CreatePlayerTextDraw(playerid, 513.000000, 303.200000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][9], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][9], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][9], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][9], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][9], 0.0, -158.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][9], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][9], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][9]);
- LinesSmall[playerid][10] = CreatePlayerTextDraw(playerid, 518.000000, 329.700000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][10], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][10], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][10], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][10], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][10], 0.0, -179.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][10], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][10], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][10]);
- LinesSmall[playerid][11] = CreatePlayerTextDraw(playerid, 514.800000, 356.500000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][11], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][11], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][11], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][11], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][11], 0.0, -200.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][11], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][11], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][11]);
- LinesSmall[playerid][12] = CreatePlayerTextDraw(playerid, 503.000000, 381.000000+35.0, "_");
- PlayerTextDrawFont(playerid, LinesSmall[playerid][12], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][12], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][12], 19449);
- PlayerTextDrawTextSize(playerid, LinesSmall[playerid][12], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][12], 0.0, -221.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesSmall[playerid][12], 0x80ff02FF);
- PlayerTextDrawAlignment(playerid, LinesSmall[playerid][12], 1);
- PlayerTextDrawShow(playerid, LinesSmall[playerid][12]);
- Dots[playerid][0] = CreatePlayerTextDraw(playerid, 412.40000, 356.300000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][0], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][0], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][0], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][0]);
- Dots[playerid][1] = CreatePlayerTextDraw(playerid, 407.300000, 347.500000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][1], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][1], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][1], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][1]);
- Dots[playerid][2] = CreatePlayerTextDraw(playerid, 404.600000, 337.400000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][2], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][2], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][2], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][2]);
- Dots[playerid][3] = CreatePlayerTextDraw(playerid, 404.000000, 327.400000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][3], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][3], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][3], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][3], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][3]);
- Dots[playerid][4] = CreatePlayerTextDraw(playerid, 405.500000, 317.450000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][4], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][4], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][4], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][4], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][4]);
- Dots[playerid][5] = CreatePlayerTextDraw(playerid, 409.400000, 308.200000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][5], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][5], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][5], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][5], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][5]);
- Dots[playerid][6] = CreatePlayerTextDraw(playerid, 415.000000, 299.750000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][6], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][6], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][6], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][6], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][6]);
- Dots[playerid][7] = CreatePlayerTextDraw(playerid, 421.000000, 291.000000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][7], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][7], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][7], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][7], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][7]);
- Dots[playerid][8] = CreatePlayerTextDraw(playerid, 429.600000, 283.800000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][8], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][8], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][8], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][8], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][8]);
- Dots[playerid][9] = CreatePlayerTextDraw(playerid, 440.200000, 280.200000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][9], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][9], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][9], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][9], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][9]);
- Dots[playerid][10] = CreatePlayerTextDraw(playerid, 451.400000, 279.900000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][10], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][10], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][10], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][10], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][10]);
- Dots[playerid][11] = CreatePlayerTextDraw(playerid, 462.600000, 281.500000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][11], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][11], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][11], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][11], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][11]);
- Dots[playerid][12] = CreatePlayerTextDraw(playerid, 473.000000, 286.000000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][12], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][12], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][12], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][12], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][12]);
- Dots[playerid][13] = CreatePlayerTextDraw(playerid, 480.400000, 294.000000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][13], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][13], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][13], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][13], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][13]);
- Dots[playerid][14] = CreatePlayerTextDraw(playerid, 485.500000, 303.500000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][14], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][14], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][14], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][14], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][14]);
- Dots[playerid][15] = CreatePlayerTextDraw(playerid, 490.800000, 312.200000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][15], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][15], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][15], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][15], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][15]);
- Dots[playerid][16] = CreatePlayerTextDraw(playerid, 493.100000, 322.200000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][16], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][16], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][16], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][16], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][16]);
- Dots[playerid][17] = CreatePlayerTextDraw(playerid, 494.000000, 332.300000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][17], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][17], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][17], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][17], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][17]);
- Dots[playerid][18] = CreatePlayerTextDraw(playerid, 492.000000, 342.400000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][18], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][18], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][18], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][18], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][18]);
- Dots[playerid][19] = CreatePlayerTextDraw(playerid, 488.300000, 351.700000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][19], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][19], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][19], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][19], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][19]);
- Dots[playerid][20] = CreatePlayerTextDraw(playerid, 482.300000, 360.000000+35.0, ".");
- PlayerTextDrawFont(playerid, Dots[playerid][20], 1);
- PlayerTextDrawBackgroundColor(playerid, Dots[playerid][20], 0x00000000);
- PlayerTextDrawColor(playerid, Dots[playerid][20], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, Dots[playerid][20], 0.33, 1.60);
- PlayerTextDrawShow(playerid, Dots[playerid][20]);
- kmh[playerid][0] = CreatePlayerTextDraw(playerid, 414.300000, 358.000000+35.0, "20");
- PlayerTextDrawFont(playerid, kmh[playerid][0], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][0], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][0], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][0], 0.21, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][0]);
- kmh[playerid][1] = CreatePlayerTextDraw(playerid, 408.600000, 342.000000+35.0, "40");
- PlayerTextDrawFont(playerid, kmh[playerid][1], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][1], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][1], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][1], 0.21, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][1]);
- kmh[playerid][2] = CreatePlayerTextDraw(playerid, 409.000000, 324.000000+35.0, "60");
- PlayerTextDrawFont(playerid, kmh[playerid][2], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][2], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][2], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][2], 0.21, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][2]);
- kmh[playerid][3] = CreatePlayerTextDraw(playerid, 417.600000, 309.600000+35.0, "80");
- PlayerTextDrawFont(playerid, kmh[playerid][3], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][3], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][3], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][3], 0.21, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][3]);
- kmh[playerid][4] = CreatePlayerTextDraw(playerid, 426.400000, 294.900000+35.0, "100");
- PlayerTextDrawFont(playerid, kmh[playerid][4], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][4], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][4], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][4], 0.18, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][4]);
- kmh[playerid][5] = CreatePlayerTextDraw(playerid, 447.500000, 291.400000+35.0, "120");
- PlayerTextDrawFont(playerid, kmh[playerid][5], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][5], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][5], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][5], 0.18, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][5]);
- kmh[playerid][6] = CreatePlayerTextDraw(playerid, 464.500000, 297.000000+35.0, "140");
- PlayerTextDrawFont(playerid, kmh[playerid][6], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][6], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][6], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][6], 0.18, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][6]);
- kmh[playerid][7] = CreatePlayerTextDraw(playerid, 474.000000, 311.700000+35.0, "160");
- PlayerTextDrawFont(playerid, kmh[playerid][7], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][7], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][7], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][7], 0.18, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][7]);
- kmh[playerid][8] = CreatePlayerTextDraw(playerid, 481.200000, 328.300000+35.0, "180");
- PlayerTextDrawFont(playerid, kmh[playerid][8], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][8], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][8], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][8], 0.18, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][8]);
- kmh[playerid][9] = CreatePlayerTextDraw(playerid, 477.800000, 347.200000+35.0, "200");
- PlayerTextDrawFont(playerid, kmh[playerid][9], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][9], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][9], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][9], 0.18, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][9]);
- kmh[playerid][10] = CreatePlayerTextDraw(playerid, 468.700000, 364.400000+35.0, "220");
- PlayerTextDrawFont(playerid, kmh[playerid][10], 2);
- PlayerTextDrawBackgroundColor(playerid, kmh[playerid][10], 0x00000000);
- PlayerTextDrawColor(playerid, kmh[playerid][10], 0xFFFFFFFF);
- PlayerTextDrawLetterSize(playerid, kmh[playerid][10], 0.18, 0.98);
- PlayerTextDrawShow(playerid, kmh[playerid][10]);
- new Float:rotation = 319;
- for(new q = 13; q >= 0; q--)
- {
- new Float:Pos[14][2];
- RotationXY(446.6, 358+35.0, Pos[q][0], Pos[q][1], rotation, (q + 1) * 5);
- if(q == 0)
- {
- Spee[playerid][q] = CreatePlayerTextDraw(playerid, Pos[q][0], Pos[q][1], "~l~.");
- }
- else
- {
- Spee[playerid][q] = CreatePlayerTextDraw(playerid, Pos[q][0], Pos[q][1], ".");
- }
- if(q > 0) { PlayerTextDrawColor(playerid, Spee[playerid][q], 0x8B0000FF); }
- if(q==1)
- {
- PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x8B0000FF);
- PlayerTextDrawSetOutline(playerid, Spee[playerid][q], 1);
- }
- else if(q==0)
- {
- PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x000000FF);
- PlayerTextDrawSetOutline(playerid, Spee[playerid][q], 1);
- }
- else
- {
- PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x00000000);
- }
- PlayerTextDrawLetterSize(playerid, Spee[playerid][q], 0.73, -2.60);
- PlayerTextDrawShow(playerid, Spee[playerid][q]);
- }
- new Float:rotation2 = rotation - 180;
- for(new y; y < 4; y++)
- {
- new Float:Pos1[4][2];
- RotationXY(446.6, 358+35.0, Pos1[y][0], Pos1[y][1], rotation2, (y + 1) * 5);
- Spee2[playerid][y] = CreatePlayerTextDraw(playerid, Pos1[y][0], Pos1[y][1], "~l~.");
- PlayerTextDrawBackgroundColor(playerid, Spee2[playerid][y], 0x000000FF);
- PlayerTextDrawLetterSize(playerid, Spee2[playerid][y], 0.73, -2.60);
- PlayerTextDrawColor(playerid, Spee2[playerid][y], 0x000000FF);
- PlayerTextDrawSetOutline(playerid, Spee2[playerid][y], 1);
- PlayerTextDrawShow(playerid, Spee2[playerid][y]);
- }
- // Fuel
- if(!IsNonFuelVehicle(vehid))
- {
- fuel3[playerid] = CreatePlayerTextDraw(playerid, 538.000000, 347.000000, "_");
- PlayerTextDrawFont(playerid, fuel3[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, fuel3[playerid], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, fuel3[playerid], 19159);
- PlayerTextDrawTextSize(playerid, fuel3[playerid], 95.0, 95.0);
- PlayerTextDrawSetPreviewRot(playerid, fuel3[playerid], 90.0, 0.0, 0.0, 0.503);
- PlayerTextDrawColor(playerid, fuel3[playerid], 0x00000055);
- PlayerTextDrawShow(playerid, fuel3[playerid]);
- fuel2[playerid] = CreatePlayerTextDraw(playerid, 538.000000-20.0, 347.000000, "_");
- PlayerTextDrawFont(playerid, fuel2[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, fuel2[playerid], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, fuel2[playerid], 19159);
- PlayerTextDrawTextSize(playerid, fuel2[playerid], 95.0, 95.0);
- PlayerTextDrawSetPreviewRot(playerid, fuel2[playerid], 90.0, 0.0, 0.0, 4.0);
- PlayerTextDrawColor(playerid, fuel2[playerid], 0x000000FF);
- PlayerTextDrawShow(playerid, fuel2[playerid]);
- fuel1[playerid] = CreatePlayerTextDraw(playerid, 581.8-20.0, 377.3+35.0, ".");
- PlayerTextDrawBackgroundColor(playerid, fuel1[playerid], 0x00000000);
- PlayerTextDrawLetterSize(playerid, fuel1[playerid], 0.73, -2.60);
- PlayerTextDrawColor(playerid, fuel1[playerid], 0x8B0000FF);
- PlayerTextDrawShow(playerid, fuel1[playerid]);
- LinesFuel[playerid][0] = CreatePlayerTextDraw(playerid, 610.700000-20.0, 352.6+35.0, "_");
- PlayerTextDrawFont(playerid, LinesFuel[playerid][0], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][0], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][0], 19449);
- PlayerTextDrawTextSize(playerid, LinesFuel[playerid][0], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][0], 0.0, 0.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesFuel[playerid][0], 0xFFFFFFFF);
- PlayerTextDrawAlignment(playerid, LinesFuel[playerid][0], 1);
- PlayerTextDrawShow(playerid, LinesFuel[playerid][0]);
- LinesFuel[playerid][1] = CreatePlayerTextDraw(playerid,589.600000-20.0, 382.5+35.0, "_");
- PlayerTextDrawFont(playerid, LinesFuel[playerid][1], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][1], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][1], 19449);
- PlayerTextDrawTextSize(playerid, LinesFuel[playerid][1], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][1], 0.0, -70.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesFuel[playerid][1], 0xFFFFFFFF);
- PlayerTextDrawAlignment(playerid, LinesFuel[playerid][1], 1);
- PlayerTextDrawShow(playerid, LinesFuel[playerid][1]);
- LinesFuel[playerid][2] = CreatePlayerTextDraw(playerid,589.600000-20.0, 322.7+35.0, "_");
- PlayerTextDrawFont(playerid, LinesFuel[playerid][2], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][2], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][2], 19449);
- PlayerTextDrawTextSize(playerid, LinesFuel[playerid][2], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][2], 0.0, 70.0, 90.0, 1);
- PlayerTextDrawColor(playerid, LinesFuel[playerid][2], 0xFFFFFFFF);
- PlayerTextDrawAlignment(playerid, LinesFuel[playerid][2], 1);
- PlayerTextDrawShow(playerid, LinesFuel[playerid][2]);
- LinesFuel[playerid][3] = CreatePlayerTextDraw(playerid,606.500000-20.0, 333.3+35.0, "_");
- PlayerTextDrawFont(playerid, LinesFuel[playerid][3], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][3], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][3], 19449);
- PlayerTextDrawTextSize(playerid, LinesFuel[playerid][3], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][3], 0.0, 35.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesFuel[playerid][3], 0xFFFFFFFF);
- PlayerTextDrawAlignment(playerid, LinesFuel[playerid][3], 1);
- PlayerTextDrawShow(playerid, LinesFuel[playerid][3]);
- LinesFuel[playerid][4] = CreatePlayerTextDraw(playerid,606.500000-20.0, 371.9+35.0, "_");
- PlayerTextDrawFont(playerid, LinesFuel[playerid][4], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][4], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][4], 19449);
- PlayerTextDrawTextSize(playerid, LinesFuel[playerid][4], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][4], 0.0, -35.0, 90.0, 1.5);
- PlayerTextDrawColor(playerid, LinesFuel[playerid][4], 0xFFFFFFFF);
- PlayerTextDrawAlignment(playerid, LinesFuel[playerid][4], 1);
- PlayerTextDrawShow(playerid, LinesFuel[playerid][4]);
- LinesFuel[playerid][5] = CreatePlayerTextDraw(playerid, 594.000000-20.0, 352.0+35.0, "_");
- PlayerTextDrawFont(playerid, LinesFuel[playerid][5], TEXT_DRAW_FONT_MODEL_PREVIEW);
- PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][5], 0x00000000);
- PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][5], 1650);
- PlayerTextDrawTextSize(playerid, LinesFuel[playerid][5], 14.0, 14.0);
- PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][5], 0.0, 0.0, 0.0, 0.7);
- PlayerTextDrawColor(playerid, LinesFuel[playerid][5], 0xFFFFFFFF);
- PlayerTextDrawAlignment(playerid, LinesFuel[playerid][5], 1);
- PlayerTextDrawShow(playerid, LinesFuel[playerid][5]);
- LinesFuel[playerid][6] = CreatePlayerTextDraw(playerid, 586.000000-20.0, 383.0+35.0, "E");
- PlayerTextDrawFont(playerid, LinesFuel[playerid][6], 1);
- PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][6], 0x00000000);
- PlayerTextDrawColor(playerid, LinesFuel[playerid][6], 0xFFFFFFFF);
- PlayerTextDrawAlignment(playerid, LinesFuel[playerid][6], 1);
- PlayerTextDrawLetterSize(playerid, LinesFuel[playerid][6], 0.26, 1.52);
- PlayerTextDrawShow(playerid, LinesFuel[playerid][6]);
- LinesFuel[playerid][7] = CreatePlayerTextDraw(playerid, 586.000000-20.0, 321.7+35.0, "F");
- PlayerTextDrawFont(playerid, LinesFuel[playerid][7], 1);
- PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][7], 0x00000000);
- PlayerTextDrawColor(playerid, LinesFuel[playerid][7], 0xFFFFFFFF);
- PlayerTextDrawAlignment(playerid, LinesFuel[playerid][7], 1);
- PlayerTextDrawLetterSize(playerid, LinesFuel[playerid][7], 0.26, 1.52);
- PlayerTextDrawShow(playerid, LinesFuel[playerid][7]);
- new Float:Frotation = 160 - ((100-Gas[GetPlayerVehicleID(playerid)])*1.4);
- if(Gas[GetPlayerVehicleID(playerid)] > 100) { Frotation = 160; }
- if(Gas[GetPlayerVehicleID(playerid)] < 0) { Frotation = 20; }
- for(new p; p < 7; p++)
- {
- new Float:FPos[7][2];
- RotationXY(581.8-20.0, 377.3+35.0, FPos[p][0], FPos[p][1], Frotation, (p + 1) * 5);
- FuelBar[playerid][p] = CreatePlayerTextDraw(playerid, FPos[p][0], FPos[p][1], ".");
- PlayerTextDrawBackgroundColor(playerid, FuelBar[playerid][p], 0x00000000);
- PlayerTextDrawLetterSize(playerid, FuelBar[playerid][p], 0.73, -2.60);
- PlayerTextDrawColor(playerid, FuelBar[playerid][p], 0x8B0000FF);
- PlayerTextDrawShow(playerid, FuelBar[playerid][p]);
- }
- }
- }
- public DestroySpeedo(playerid)
- {
- PlayerTextDrawDestroy(playerid, speedo1[playerid]);
- PlayerTextDrawDestroy(playerid, speedo2[playerid]);
- PlayerTextDrawDestroy(playerid, MPHT[playerid]);
- PlayerTextDrawDestroy(playerid, kmhT[playerid]);
- PlayerTextDrawDestroy(playerid, fuel3[playerid]);
- PlayerTextDrawDestroy(playerid, fuel1[playerid]);
- PlayerTextDrawDestroy(playerid, fuel2[playerid]);
- for(new z; z < 21; z++)
- {
- if(z<11) { PlayerTextDrawDestroy(playerid, kmh[playerid][z]); }
- PlayerTextDrawDestroy(playerid, Dots[playerid][z]);
- }
- for(new z; z < 14; z++)
- {
- PlayerTextDrawDestroy(playerid, Spee[playerid][z]);
- PlayerTextDrawDestroy(playerid, LinesBig[playerid][z]);
- PlayerTextDrawDestroy(playerid, MPH[playerid][z]);
- if(z < 13) { PlayerTextDrawDestroy(playerid, LinesSmall[playerid][z]); }
- if(z<7) { PlayerTextDrawDestroy(playerid, FuelBar[playerid][z]); }
- if(z<8) { PlayerTextDrawDestroy(playerid, LinesFuel[playerid][z]); PlayerTextDrawDestroy(playerid, Circles[playerid][z]); }
- }
- for(new z; z < 4; z++)
- {
- PlayerTextDrawDestroy(playerid, Spee2[playerid][z]);
- }
- }
- public CheckGas()
- {
- for(new i = 1; i<2000; i++)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
- if (engine == 1 && !IsNonFuelVehicle(i))
- {
- if(Gas[i] >= 1)
- {
- Gas[i]--;
- }
- else {
- SetVehicleParamsEx(i,0,lights,alarm,doors,bonnet,boot,objective);
- }
- if(Gas[i] > 100)
- {
- Gas[i] = 100;
- }
- for(new y; y<MAX_PLAYERS; y++)
- {
- if(IsPlayerConnected(y))
- {
- if(IsPlayerInAnyVehicle(y) && GetPlayerVehicleID(y) == i)
- {
- if(GetPlayerVehicleSeat(y) == 0 || GetPlayerVehicleSeat(y) == 1)
- {
- new Float:Frotation = 160 - ((100-Gas[i])*1.4);
- if(Gas[i] > 100) { Frotation = 160; }
- if(Gas[i] < 0) { Frotation = 20; }
- for(new p; p < 7; p++)
- {
- PlayerTextDrawDestroy(y, FuelBar[y][p]);
- new Float:FPos[7][2];
- RotationXY(581.8-20.0, 377.3+35.0, FPos[p][0], FPos[p][1], Frotation, (p + 1) * 5);
- FuelBar[y][p] = CreatePlayerTextDraw(y, FPos[p][0], FPos[p][1], ".");
- PlayerTextDrawBackgroundColor(y, FuelBar[y][p], 0x00000000);
- PlayerTextDrawLetterSize(y, FuelBar[y][p], 0.73, -2.60);
- PlayerTextDrawColor(y, FuelBar[y][p], 0x8B0000FF);
- PlayerTextDrawShow(y, FuelBar[y][p]);
- }
- if(Gas[i] <= 10) { PlayerPlaySound(y, 1085, 0.0, 0.0, 0.0); }
- }
- }
- }
- }
- }
- }
- return 1;
- }
- stock Float:GetSpeed(playerid)
- {
- new Float:p[3];
- GetVehicleVelocity(GetPlayerVehicleID(playerid),p[0],p[1],p[2]);
- new Float:speed = (150.0*(p[0]*p[0]+p[1]*p[1])) / 1.61;
- return speed;
- }
- stock RotationXY(Float:StartPosX, Float:StartPosY, &Float:NewX, &Float:NewY, Float:rotation, Float:dist)
- {
- NewX = StartPosX + (dist * floatsin(rotation, degrees));
- NewY = StartPosY + (dist * floatcos(rotation, degrees));
- }
- stock IsNonFuelVehicle(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 592,577,511,512,593,520,553,476,519,460,513,548,
- 417,488,563,447,509,481,510,472,595,
- 484,430: return 1;
- }
- return 0;
- }
- public OnFilterScriptInit()
- {
- for(new i = 0; i < MAX_VEHICLES; i++)
- {
- Gas[i] = 100;
- }
- checkgastimer = SetTimer("CheckGas", 45000, 1);
- print("** Speedometer by Daddy Yankee **");
- return 1;
- }
- public OnFilterScriptExit()
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsPlayerInAnyVehicle(i))
- {
- DestroySpeedo(i);
- oldspeed[i] = 0;
- }
- }
- }
- KillTimer(checkgastimer);
- print("** Speedometer by Daddy Yankee **");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- oldspeed[playerid] = 0;
- }
- public OnPlayerUpdate(playerid)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
- {
- if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1)
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehid) != 481 && GetVehicleModel(vehid) != 509 && GetVehicleModel(vehid) != 510)
- {
- if(oldspeed[playerid] != GetSpeed(playerid))
- {
- new Float:rotation;
- if(GetSpeed(playerid) >= 0 && GetSpeed(playerid) < 10)
- {
- rotation = 319 - (GetSpeed(playerid) * 0.8);
- }
- else if(GetSpeed(playerid) >= 10 && GetSpeed(playerid) <= 140)
- {
- rotation = 311 - ((GetSpeed(playerid) - 10) * 2.076923);
- }
- else
- {
- rotation = 41;
- }
- for(new q = 13; q >= 0; q--)
- {
- PlayerTextDrawDestroy(playerid, Spee[playerid][q]);
- new Float:Pos[14][2];
- RotationXY(446.6, 358+35.0, Pos[q][0], Pos[q][1], rotation, (q + 1) * 5);
- if(q == 0)
- {
- Spee[playerid][q] = CreatePlayerTextDraw(playerid, Pos[q][0], Pos[q][1], "~l~.");
- }
- else
- {
- Spee[playerid][q] = CreatePlayerTextDraw(playerid, Pos[q][0], Pos[q][1], ".");
- }
- if(q > 0) { PlayerTextDrawColor(playerid, Spee[playerid][q], 0x8B0000FF); }
- if(q==1)
- {
- PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x8B0000FF);
- PlayerTextDrawSetOutline(playerid, Spee[playerid][q], 1);
- }
- else if(q==0)
- {
- PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x000000FF);
- PlayerTextDrawSetOutline(playerid, Spee[playerid][q], 1);
- }
- else
- {
- PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x00000000);
- }
- PlayerTextDrawLetterSize(playerid, Spee[playerid][q], 0.73, -2.60);
- PlayerTextDrawShow(playerid, Spee[playerid][q]);
- }
- new Float:rotation2 = rotation - 180;
- for(new x; x < 4; x++)
- {
- PlayerTextDrawDestroy(playerid, Spee2[playerid][x]);
- new Float:Pos1[4][2];
- RotationXY(446.6, 358+35.0, Pos1[x][0], Pos1[x][1], rotation2, (x + 1) * 5);
- Spee2[playerid][x] = CreatePlayerTextDraw(playerid, Pos1[x][0], Pos1[x][1], "~l~.");
- PlayerTextDrawBackgroundColor(playerid, Spee2[playerid][x], 0x000000FF);
- PlayerTextDrawLetterSize(playerid, Spee2[playerid][x], 0.73, -2.60);
- PlayerTextDrawColor(playerid, Spee2[playerid][x], 0x000000FF);
- PlayerTextDrawSetOutline(playerid, Spee2[playerid][x], 1);
- PlayerTextDrawShow(playerid, Spee2[playerid][x]);
- }
- oldspeed[playerid] = GetSpeed(playerid);
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehid) != 481 && GetVehicleModel(vehid) != 509 && GetVehicleModel(vehid) != 510)
- {
- if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1)
- {
- CreateSpeedo(playerid);
- }
- }
- }
- if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
- {
- DestroySpeedo(playerid);
- oldspeed[playerid] = 0;
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- DestroySpeedo(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement