Car Despawn After Being Destroyed? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Car Despawn After Being Destroyed? (
/showthread.php?tid=532325)
Car Despawn After Being Destroyed? -
DragoA - 17.08.2014
How do I make it so that cars despawn after they are destroyed?
Re: Car Despawn After Being Destroyed? -
Gogeta101 - 17.08.2014
They automaticly do
Re: Car Despawn After Being Destroyed? -
DragoA - 17.08.2014
No they don't.
Re: Car Despawn After Being Destroyed? -
AMouldyLemon - 17.08.2014
pawn Код:
SetVehicleToRespawn(vehicleid);
Maybe?
Re: Car Despawn After Being Destroyed? -
Juvanii - 17.08.2014
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
SetVehicleToRespawn(vehicleid);
return 1;
}
Re: Car Despawn After Being Destroyed? -
Threshold - 17.08.2014
I am going to assume that by 'despawn' you mean 'destroy/delete'.
pawn Код:
public OnVehicleDeath(vehicleid) //Called when a vehicle is destroyed or enters the water.
{
DestroyVehicle(vehicleid);
return 1;
}