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



respawn - PANNA - 02.11.2009

i searched but i only find respawn time when the car/bike is destroyed, but can someone tell meh how to make a respawn time when someone drive from the spawn spot to somewhere in sanandreas and teleport away and the car is still there, that it will respawn in like 10 seconds or something.


Re: respawn - Mikep. - 02.11.2009

SetVehicleToRespawn(vehicleid);


Re: respawn - PANNA - 02.11.2009

Quote:
Originally Posted by Mikep.
SetVehicleToRespawn(vehicleid);
where i need to put that?

make an example with this please?

AddStaticVehicle(533,blah blah,blah blah,blah blah,blah blah,2,3,15);

and tell meh how to set the respawn time to like 10 seconds.


Re: respawn - _Vortex - 02.11.2009

AddStaticVehicleEx..?

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

It has a respawn delay.


Re: respawn - PANNA - 02.11.2009

Quote:
Originally Posted by [B
Vortex ]
AddStaticVehicleEx..?

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

It has a respawn delay.
this works only when it gets destroyed.
but i want when it's not destroyed and its somewhere in sanandreas without someone driving on it,
example:
spawnpoint is at lsairport
and the car is now without anyone driving in it in the desert, the car will be respawned in 10 seconds to lsair.