Calculating Damage for new doors/ tires/ lights/panals?
#1

Does anyone know an efficient way (or any way) to calculate the status for the parts within doors, tires, lights, and panals in a vehicle?

I'm hoping to encode them and then have it detect the parts that are damaged.


So as in somthing that will do this (Obviously this wont work... but it shows what I mean):

pawn Код:
new lightcost = 0;//Cost for light repair
encode_lights(light1, light2, light3, light4)//Some way to detect light damaged/undamaged
if(light1 != 0)//if light1 is broken
{
      lightcost += 35;//Add $35 to light repair
}
if(light2 != 0)
{
      lightcost += 35;

}
if(light3 != 0)
{
      lightcost += 35;

}
if(light4 != 0)
{
      lightcost += 35;

}
Does anyone know how to do somthing like this. I will be using it for an advanced /repair system.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)