Detect vehicle explosion and much more stuff
#2

Use this callback: https://sampwiki.blast.hk/wiki/OnVehicleDeath
Make use of per vehicle based vars to detect if was destroyed and do your stuff.
After storing the report, use this: https://sampwiki.blast.hk/wiki/OnVehicleSpawn

pawn Код:
new bool:died[MAX_VEHICLES];

public OnVehicleDeath(vehicleid, killerid)
{
     died[vehicleid] = true;
     return 1;
}

public OnVehicleSpawn(vehicleid)
{
     if(died[vehicleid])
     {
          //Spawn it as locked with low Health
     }
     return 1;
}
* You cant spawn a vehicle as destroyed.
Reply


Messages In This Thread
Detect vehicle explosion and much more stuff - by bigboy81 - 01.04.2015, 14:00
Re: Detect vehicle explosion and much more stuff - by Gammix - 01.04.2015, 15:57
Re: Detect vehicle explosion and much more stuff - by CalvinC - 01.04.2015, 16:06
Re: Detect vehicle explosion and much more stuff - by BleverCastard - 01.04.2015, 16:10
Re: Detect vehicle explosion and much more stuff - by CalvinC - 01.04.2015, 16:44

Forum Jump:


Users browsing this thread: 2 Guest(s)