12.12.2013, 19:50
Quote:
I was about to say the same.
If a COP vehicle gets seriously damaged, then another COP vehicle spawn, all cop vehicles will magically repair. So, the correct is when the vehicle spawns, set just its health pawn Код:
Now the loop will make sense... pawn Код:
|
pawn Код:
for(new i; i < MAX_VEHICLES; i ++) // creating a loop through all vehicles
{
if(vehicleid == LSPDVehicles[i])
{
SetVehicleHealth(vehicleid,2500);
}// for each LSPD vehicle set vehicle health to 2500 as you want!
}
for(new i; i < MAX_VEHICLES; i ++) // creating a loop through all vehicles
{
if(vehicleid == FBIVehicles[i])
{
SetVehicleHealth(vehicleid,2500);
}// for each LSPD vehicle set vehicle health to 2500 as you want!
}