+rep create and destroy 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: +rep create and destroy vehicles? (
/showthread.php?tid=326292)
+rep create and destroy vehicles? -
PawnoQ - 17.03.2012
hi,
how would i do it like at the beginning i can spawn 30 vehicles and make them disappear after an explosion (so they dont respawn after a vehicle has been destroyed).
thx.
Re: +rep create and destroy vehicles? -
WardenCS - 17.03.2012
https://sampwiki.blast.hk/wiki/DestroyVehicle
Re: +rep create and destroy vehicles? -
Lee_Percox - 17.03.2012
in OnVehicleDeath just add
DestroyVehicle(vehid);
To create the vehicles either use the
https://sampwiki.blast.hk/wiki/CreateVehicle or the
https://sampwiki.blast.hk/wiki/AddStaticVehicle function.
Re: +rep create and destroy vehicles? -
WardenCS - 17.03.2012
shit,didnt i just say that?
Re: +rep create and destroy vehicles? -
Lee_Percox - 17.03.2012
Does it look like you just said that? You just gave one single link into a command, you also only answered his first half of the question. Shit what's the reason for your response?
Re: +rep create and destroy vehicles? -
WardenCS - 17.03.2012
rofl,open the link and theres the same lines you just gave
Re: +rep create and destroy vehicles? -
Lee_Percox - 17.03.2012
Where in that link does it mention about OnVehicleDeath which is required for where he asked about once a vehicle is destroyed to be removed. Quit your smart comments we have both tried to assist him, no need to make a meal of it. Off to bed anyway, peace.