SA-MP Forums Archive
Problem with Vehicles - 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: Problem with Vehicles (/showthread.php?tid=574550)



Problem with Vehicles - Curmei - 18.05.2015

Hello Everyone, i just occured a problem, I set some vehicles to spawn, it's ok, the car is spawned, and if i leave that area, the cars warp to another coordonates. 2-3 metres away. If i use /rac (respawn all cars) the cars come back to original position, but after i leave area, it happen again. Help me please. That's cars define:
Quote:

lfcar = AddStaticVehicle(405,-2089.6846,-84.7597,35.0391,0,17,17); //
lfcar1 = AddStaticVehicle(405,-2081.6846,-84.7597,35.0391,0,17,17); //
lfcar2 = AddStaticVehicle(405,-2073.6846,-84.7597,35.0391,0,17,17); //
lfcar3 = AddStaticVehicle(405,-2065.6846,-84.7597,35.0391,0,17,17); //
lfcar4 = AddStaticVehicle(487,-2025.4811,-84.2345,35.6926,0,17,17); //




Re: Problem with Vehicles - Konstantinos - 18.05.2015

Use AddStaticVehicleEx instead a set the respawn_delay.


Re: Problem with Vehicles - Greaper - 18.05.2015

Код:
lfcar = AddStaticVehicleEx(405,-2089.6846,-84.7597,35.0391,0,17,17); //
lfcar1 = AddStaticVehicleEx(405,-2081.6846,-84.7597,35.0391,0,17,17); //
lfcar2 = AddStaticVehicleEx(405,-2073.6846,-84.7597,35.0391,0,17,17); //
lfcar3 = AddStaticVehicleEx(405,-2065.6846,-84.7597,35.0391,0,17,17); //
lfcar4 = AddStaticVehicleEx(487,-2025.4811,-84.2345,35.6926,0,17,17); //