How to set a vehicle's model health
#2

SetVehicleHealth: https://sampwiki.blast.hk/wiki/SetVehicleHealth

Use loops to get a vehicle's model id by GetVehicleModel and set the health to 2000.

pawn Код:
for (new i; i < MAX_VEHICLES; i++) {
    if (GetVehicleModel(i) == fagio_model_id) {
        SetVehicleHealth(i, 2000);
    }
}
Reply


Messages In This Thread
How to set a vehicle's model health - by JXbro - 13.09.2015, 14:26
Re: How to set a vehicle's model health - by Gammix - 13.09.2015, 14:34
Re: How to set a vehicle's model health - by Evocator - 13.09.2015, 14:44
Re: How to set a vehicle's model health - by JXbro - 13.09.2015, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)