01.04.2015, 14:00
I want to do if the vehicle is destroyed by explosion,when player respawn car using command its car must be created destroyed..
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;
}
Originally Posted by Wiki
This callback is called when a vehicle is destroyed - either by exploding or becoming submerged in water.
|