When the vehicle is destroyed Mission ends
#2

If I understand:
You need to make a variable like
PHP код:
//On top
new bool:IsAmbLoaded[MAX_VEHICLES]; 
Once you load the ambulance in your script set it to true with
PHP код:
IsAmbLoaded[vehicleid] = true//The vehicleid is the ambulance 
and do the check onvehicledeath like
PHP код:
public OnVehicleDeath(vehicleidkillerid

    if(
GetVehicleModel(vehicleid) == 416 && IsAmbLoaded[vehicleid] == true
    { 
        
//Mission failed
        
IsAmbLoaded[vehicleid] = false//Don't forget to reset the var to false after the mission end 
    


Reply


Messages In This Thread
When the vehicle is destroyed Mission ends - by cloudysky - 12.06.2017, 15:44
Re: When the vehicle is destroyed Mission ends - by FailerZ - 12.06.2017, 15:58
Re: When the vehicle is destroyed Mission ends - by Vince - 12.06.2017, 16:08
Re: When the vehicle is destroyed Mission ends - by cloudysky - 12.06.2017, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)