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



Vehicle dissapear - baske007 - 04.08.2010

Hello everyone,

is it possible to disable the automatic vehicle respawn function? Like when I leave my car on a spot, and I walk a few streets further, and I walk back, my car is respawned at the start position. I need this function disabled.

Thanks already

Bas


Re: Vehicle dissapear - JaTochNietDan - 04.08.2010

Try using AddStaticVehicleEx instead of AddStaticVehicle so you can set a spawn delay, like so.

pawn Код:
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, -1);
The -1 at the end will mean it will never respawn unless it explodes or lands in water.


Re: Vehicle dissapear - baske007 - 05.08.2010

You are the best!

Thanks!

Bas