SA-MP Forums Archive
Cars 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: Cars respawn? (/showthread.php?tid=82687)



Cars respawn? - killdahobo99 - 20.06.2009

Is it possible to make it so...When someone gets out of there car, like 5 minutes of the car not being used it will respawn to it's original location?

On my stunt server, the cars don't go back to there original spot because they don't blow up because of the carrepair system so im confused on what to do.

I've never actually seen the cars go back themselves, i'm not sure they do.

Please help if ya know. Thanks a lot guys.


Re: Cars respawn? - Grim_ - 20.06.2009

-removed-


Re: Cars respawn? - woot - 20.06.2009

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

CreateVehicle(modelid, Float, Float:y,Float:z, Float:angle, color1, color2, respawn_delay);


Re: Cars respawn? - killdahobo99 - 20.06.2009

Quote:
Originally Posted by //exora
https://sampwiki.blast.hk/wiki/CreateVehicle

CreateVehicle(modelid, Float, Float:y,Float:z, Float:angle, color1, color2, respawn_delay);
Whats wrong with this one?

Код:
CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 800);
The truck wont spawn any more


Re: Cars respawn? - Grim_ - 20.06.2009

remember that the respawn delay is in seconds.


Re: Cars respawn? - killdahobo99 - 20.06.2009

Quote:
Originally Posted by Swift_
remember that the respawn delay is in seconds.
Oh ok nvm it works! Lol thanks guys.


Re: Cars respawn? - Abernethy - 20.06.2009

Haha'. Change all your Static Vehicles to Create Vehicles.. seems boring, haha.