[AJUDA/PEDIDO] Blindagem de um Veiculo !
#9

pawn Код:
public OnPlayerUpdate(playerid)
{
         if(IsPlayerInVehicle(GetPlayerVehicleID(playerid)) == 427 && GeVehicleHealth(GetPlayerVehicleID(playerid)) < 1000) return RepairVehicle(GetPlayerVehicleID(playerid)), SetHeicleHealth(GetPlayerVehicleID(playerid),100);
         return 1;
}
ele verifica a vida do carro й menor que 1000 ele repara assim evitando variaveis e desperdicios.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)