SA-MP Forums Archive
Car Respawn Question - 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: Car Respawn Question (/showthread.php?tid=66441)



Car Respawn Question - jimmystone - 22.02.2009

Hello Everyone, I got one question. I use AddStaticVehicleEx to add cars. And at the end for the timer i have -1. When i driver one car and i want to change it i get a new one. I get in the new one and my old car respawns. I want to fix it and make that none car will NEVER respawn. Could someone please help me i really in need of this thing.



Thank you so much,
Jim Stone


Re: Car Respawn Question - ICECOLDKILLAK8 - 22.02.2009

Then use AddStaticVehicle or CreateVehicle


Re: Car Respawn Question - jimmystone - 22.02.2009

AddStaticVehicle does not have the timer and i don't know about CreateVehicle but i am sure AddStaticVehicle does not have timer and it will respawn in about 30 seconds after you get out.


And i want car NEVER to respawn.


Re: Car Respawn Question - brett7 - 22.02.2009

AddStaticVehicleEx?


Re: Car Respawn Question - jimmystone - 22.02.2009

Read what i wrote in my Thread. I am using it but it still respawns my cars. Look what i wrote.


Re: Car Respawn Question - Pghpunkid - 22.02.2009

umm.. OnVehicleDeath -> DestroyVehicle? (You have to use CreateVehicle to do this.) Should work just fine.


Re: Car Respawn Question - jimmystone - 22.02.2009

Can you explain more clearly please.


Re: Car Respawn Question - Pghpunkid - 23.02.2009

First, dont double post. Second, there is a callback called "OnVehicleDeath". When a vehicle is destroyed its called. Simply use Createvehicle to make the cars, and when they are destroyed, delete them with DestroyVehicle.


Re: Car Respawn Question - ICECOLDKILLAK8 - 23.02.2009

AddStaticVehicle


Re: Car Respawn Question - Pghpunkid - 24.02.2009

Quote:
Originally Posted by JeNkStAX
AddStaticVehicle
DestroyVehicle will not work with AddStaticVehicle.