Ia incearca asa
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(vehicle_personal[vehicleid] == -1)
{
format(string, sizeof string, "~w~%d", getVehicleSpeed(vehicleid));
format(string, sizeof string, "~w~Fuel: ~r~%s%.0f~n~~w~Radio: ~r~NONE", (vehicle_fuel[vehicleid] >= 30) ? ("~g~") : ("~r~"), vehicle_fuel[vehicleid]);
for(new i = 0; i < 3; i++) PlayerTextDrawSetString(playerid, Speedo[playerid][i], string);
return 1;
}
if(vehicle_personal[vehicleid] > -1)
{
format(string, sizeof string, "~w~Doors: ~g~%s~w~~h~~n~Odometer: %.2f", (PersonalVehicle[vehicle_personal[vehicleid]][pvLock] == 1) ? ("~r~Locked") : ("~g~Unlocked"), PersonalVehicle[vehicle_personal[vehicleid]][pvOdometer]);
for(new i = 0; i < 3; i++) PlayerTextDrawSetString(playerid, Speedo[playerid][i], string);
return 1;
}
}