Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Text:SpeedBox[MAX_PLAYERS];
- new Speedo[MAX_PLAYERS];
- new str[128], fuelbar[128];
- if(speed < 151)
- {
- fuel /= 10;
- if(fuel >= 1)
- {
- format(fuelbar, sizeof(fuelbar), "~l~I~w~II~r~IIIIIII~l~I");
- }
- else
- {
- format(fuelbar, sizeof(fuelbar), "~l~I~r~IIIIIIIIII~l~I");
- }
- if(fuel >= 3)
- {
- format(fuelbar, sizeof(fuelbar), "~l~I~w~III~r~IIIII~l~I");
- }
- if(fuel >= 5)
- {
- format(fuelbar, sizeof(fuelbar), "~l~I~w~IIII~r~IIIII~l~I");
- }
- if(fuel >= 7)
- {
- format(fuelbar, sizeof(fuelbar), "~l~I~w~IIIIII~r~III~l~I");
- }
- if(fuel >= 9)
- {
- format(fuelbar, sizeof(fuelbar), "~l~I~w~IIIIIIIIIII~l~I");
- }
- if(speed > 65 && GDL_Test[playerid] > 0)
- {
- FailDrivingTest(playerid, "Viteza prea mare.");
- format(str, sizeof(str), "Speed:~r~ %d ~w~MPH~n~Fuel: %s", speed, fuelbar);
- }
- if(speed > 60)
- {
- format(str, sizeof(str), "~b~Speed: ~r~%d KM/H~n~~b~Fuel: ~w~%s", speed, fuelbar);
- }
- else
- {
- format(str, sizeof(str), "~b~Speed: ~w~%d KM/H~n~~b~Fuel: ~w~%s", speed, fuelbar);
- }
- if(Engine[GetPlayerVehicleID(playerid)] == 0)
- {
- KillTimer(Vehicles[GetPlayerVehicleID(playerid)][FuelTimer]);
- }
- TextDrawSetString(SpeedBox[playerid], str);
- TextDrawShowForPlayer(playerid, SpeedBox[playerid]);
- }
- SpeedBox[i] = TextDrawCreate(550, 370, "MPH:");
- TextDrawLetterSize(SpeedBox[i], 0.309000, 1.417481);
- TextDrawTextSize(SpeedBox[i], -114.333312, 100);
- TextDrawAlignment(SpeedBox[i], 2);
- TextDrawColor(SpeedBox[i], -1);
- TextDrawUseBox(SpeedBox[i], false);
- TextDrawBoxColor(SpeedBox[i], 51);
- TextDrawSetShadow(SpeedBox[i], 0);
- TextDrawSetOutline(SpeedBox[i], -1);
- TextDrawBackgroundColor(SpeedBox[i], 255);
- TextDrawFont(SpeedBox[i], 2);
- TextDrawSetProportional(SpeedBox[i], 1);
Advertisement
Add Comment
Please, Sign In to add comment