10/04/2022 17:57
A vida do carro é uma Float
Código:
stock AtualizarVelocimetro(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
return 1;
//Motor
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 100) health = 100;
SetPlayerProgressBarValue(playerid, VBarra[playerid][1], health);
return 1;
}