SA-MP Forums Archive
Is there a way to make when spawned car explode to dont respawn ? - 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: Is there a way to make when spawned car explode to dont respawn ? (/showthread.php?tid=462282)



Is there a way to make when spawned car explode to dont respawn ? - bustern - 06.09.2013

I want when i explode a spawned car, to dont respawn, just dissapear


Re: Is there a way to make when spawned car explode to dont respawn ? - AaronKillz - 06.09.2013

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


Re: Is there a way to make when spawned car explode to dont respawn ? - bustern - 06.09.2013

But i want when car explode to be destroyed....


Re: Is there a way to make when spawned car explode to dont respawn ? - Konstantinos - 06.09.2013

You cannot detect if a vehicle was exploded, but if it died instead. So OnVehicleDeath, destroy it.


Re: Is there a way to make when spawned car explode to dont respawn ? - bustern - 06.09.2013

I made veh spawner FS and i want when player spawn his veh from my veh spawner FS and the car explode, the car dont respawn again....


Re: Is there a way to make when spawned car explode to dont respawn ? - Dragonsaurus - 06.09.2013

pawn Код:
OnVehicleDeath(vehicleid, killerid)
{
    DestroyVehicle(vehicleid);
    return 1;
}
Damn:
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds.