Quote:
Originally Posted by Rajat_Pawar
Would this work? If it doesn't, please do explain why!
pawn Code:
public OnVehicleStreamIn( vehicleid ) { new Float: vH; GetVehicleHealth( vehicleid , vH ); if( vH < MIN_HEALTH_LIMIT ) { DestroyVehicle( vehicleid ); } return 1; }
|
Destroying a vehicle deletes the car from the script so it will not re-spawn. We want the vehicle re-spawn and call the callback OnVehicleDeath.