SA-MP Forums Archive
cars only blow up with a driver, and respawn. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: cars only blow up with a driver, and respawn. (/showthread.php?tid=263907)



cars only blow up with a driver, and respawn. - dj_william - 24.06.2011

Hello, how can I make it so cars do not respawn when they explode, and so that cars can be destroyed without a driver? I've been searching for hours now and haven't found any reasonable results.


Re: cars only blow up with a driver, and respawn. - 0_o - 24.06.2011

Use a GetPlayerVehicleHealth Or MAybe GetVehicleHealth Variable, Then Destroy The Car And It Wont Respawn


Re: cars only blow up with a driver, and respawn. - dj_william - 24.06.2011

where at?


Re: cars only blow up with a driver, and respawn. - 0_o - 24.06.2011

You New At Scripting?


Re: cars only blow up with a driver, and respawn. - iFriSki - 24.06.2011

https://sampforum.blast.hk/showthread.php?tid=171900

http://forum.sa-mp.com/showthread.ph...vehicle+driver

Didn't read through your post entirely, but I believe I got the just of it.


Re: cars only blow up with a driver, and respawn. - dr.pepper - 24.06.2011

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

Use 'CreateVehicle', this is said in wiki..:
pawn Код:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
replace 'respawn_delay' with a time to when it responds. I don't really know what else to say. maybe make respawn_delay 1 billion seconds xD. or -1


Re: cars only blow up with a driver, and respawn. - dj_william - 24.06.2011

Quote:
Originally Posted by dr.pepper
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/CreateVehicle

Use 'CreateVehicle', this is said in wiki..:
pawn Код:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
replace 'respawn_delay' with a time to when it responds. I don't really know what else to say. maybe make respawn_delay 1 billion seconds xD.
Thank you Dr. Pepper, now my vehicles will no longer respawn


Re: cars only blow up with a driver, and respawn. - linuxthefish - 24.06.2011

Set the respawn delay to -1.