Stop Vehicles from respawning too quickly - 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: Stop Vehicles from respawning too quickly (
/showthread.php?tid=122987)
Stop Vehicles from respawning too quickly -
biltong - 24.01.2010
I use AddStaticVehicleEx for my vehicle spawns, with the timer set to 60. If a player leaves his car for more than 60 seconds, the car disappears. Any way I can stop this? I don't want to use AddStaticVehicle because that doesn't put the vehicle back where it spawned, it respawns the vehicle(if it was destroyed) where it was destroyed.
Re: Stop Vehicles from respawning too quickly -
[LDT]LuxurY - 24.01.2010
use CreateVehicle func.
Re: Stop Vehicles from respawning too quickly -
biltong - 24.01.2010
Does that work for loading vehicles from a file?
If so, how do I implement it?
Re: Stop Vehicles from respawning too quickly -
[LDT]LuxurY - 24.01.2010
Quote:
Originally Posted by biltong
Does that work for loading vehicles from a file?
If so, how do I implement it?
|
sure. look here
https://sampwiki.blast.hk/wiki/CreateVehicle
and use for example dini (old)
or latest DJson
http://forum.sa-mp.com/index.php?topic=71125.0
both by Dracoblue.