01.03.2017, 13:40
PHP код:
forward UpdatePlayerVelocimetro(playerid);
public UpdatePlayerVelocimetro(playerid)
{
new playervehicle;
if((playervehicle = GetPlayerVehicleID(playerid) != INVALID_VEHICLE_ID))
{
new string_velo[15];
format(string_velo, sizeof (string_velo), "%02d km/h", GetVehicleSpeed[playervehicle]);
PlayerTextDrawSetString(playerid, textPlayerVelocimetro[1][playerid], string_velo);
format(string_velo, sizeof (string_velo), "%.0f%", GetVehicleHealthEx[playervehicle]);
PlayerTextDrawSetString(playerid, textPlayerVelocimetro[3][playerid], string_velo);
format(string_velo, sizeof (string_velo), "%02d Litros", Gas[playervehicle]);
PlayerTextDrawSetString(playerid, textPlayerVelocimetro[2][playerid], string_velo);
}
return 1;
}