Help with spawning 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with spawning vehicles. (
/showthread.php?tid=271126)
Help with spawning vehicles. -
Azzeto - 23.07.2011
I need some help spawning vehicles. I have my dialogs set up and everything, but I need to find out how to make it so when you spawn a car for example
Player types: /menu *Dialog pops up*
**Dialog shows
Clothes
Weapons
Vehicles
Blabla
Blabla
*Player clicks Vehicles
*Player selects Elegy
How do I make it so the player will spawn inside the elegy, and when the player exits the elegy the car will despawn in 5 seconds.
Re: Help with spawning vehicles. -
[MG]Dimi - 23.07.2011
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse
and use bool that will track is vehicle spawned on that way. If it is create timer that will call function DestroyVehicle