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



CreateVehicle question - TheBetaFox - 30.01.2012

Hello!
How do I make it so that a vehicle created using CreateVehicle (say, with a /v command) will be deleted within X ms of being unoccupied?


Re: CreateVehicle question - MP2 - 30.01.2012

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

Quote:

Parameters:
(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)

If you set this to 10, the vehicle will respawn 10 seconds after the driver exits. If you want it so that it's destroyed if no driver was ever in it, use a timer.