Some help with vehicle things
#2

if the vehicles health reaches 250, set it to 300 and turn the engine off, that's what I do.

pawn Код:
new Float:Health, engine, lights, alarm, doors, bonnet, boot, objective;

for(new a = 0; a < MAX_VEHICLES; a++)
{
    GetVehicleHealth(a, Health);
   
    if(Health <= 250.0)
    {
        SetVehicleHealth(a, 300.0);
        GetVehicleParamsEx(a, engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(a, 0, lights, alarm, doors, bonnet, boot, objective);
    }
}
Reply


Messages In This Thread
Some help with vehicle things - by SomebodyAndMe - 18.01.2012, 07:22
Re: Some help with vehicle things - by Joe_ - 18.01.2012, 10:06

Forum Jump:


Users browsing this thread: 1 Guest(s)