01.03.2017, 13:35
PHP код:
public UpdatePlayerVelocimetro(playerid)
{
new playervehicle = GetPlayerVehicleID(playerid)
if (playervehicle != 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;
}
define a public,
PHP код:
forward UpdatePlayerVelocimetro(playerid);