Disable vehicle 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Disable vehicle respawn (
/showthread.php?tid=164978)
Disable vehicle respawn -
baske007 - 02.08.2010
Hello all,
One simple question: How can I disable car respawning? I want that when my car explodes, it doenst respawn anymore... I know I can do it OnVehicleSpawn, but I want to know if there is another option...
Thanks
Bas
Re: Disable vehicle respawn -
Conroy - 02.08.2010
Unsure if it will work, but try:
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
DestroyVehicle(vehicleid);
return 1;
}
Re: Disable vehicle respawn -
baske007 - 03.08.2010
Yep, that worked, thanks