SA-MP Forums Archive
Cars Respawn on road - 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)
+--- Thread: Cars Respawn on road (/showthread.php?tid=520164)



Cars Respawn on road - Jigsaw123 - 17.06.2014

Basically, I made some faction cars and put them on this CUSTOM Map. Somehow, when i respawn, they spawn on the custom map, but when i come back in a few seconds, they're in the middle of the road.. Any Way i can freeze them for a few seconds when a player sees them? So they dont fall under the map?


Re: Cars Respawn on road - Kimossab - 17.06.2014

I think when you spawn cars in the air they get static unless something hits them, like a player, so store it's spawn position with a z+2 then whenever someone gets inside it's radius (you choose) respawn that car. I think that oughta work, though you'll need a timer or something for that which may consume more ram.