nunca mexi com isso aн, apenas dei uma modificada, vк ai se vai, se nгo for avisa.
Код:
GetVehicleVelocity(vehicleid, speed_x, speed_y, speed_z);
final_speed = floatsqroot(((speed_x * speed_x) + (speed_y * speed_y)) + (speed_z * speed_z)) * 200.179;
final_speed_int = floatround(final_speed, floatround_round);
APlayerData[playerid][PlayerSpeed] = final_speed_int;
format(speed_string, 50, "~w~%i", final_speed_int);
TextDrawSetString(APlayerData[playerid][SpeedometerText], speed_string);
APlayerData[playerid][StatsMetersDriven] = APlayerData[playerid][StatsMetersDriven] + (final_speed / 7.2);
if ((APlayerData[playerid][PlayerSpeed] > 50) && (AVehicleData[vehicleid][Fuel] > 0))
AVehicleData[vehicleid][Fuel] -= (0.1 / 5);