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



Vehicle respawn - Aguylera - 31.10.2010

is posible don't respawn a car anytime?


Re: Vehicle respawn - Nero_3D - 31.10.2010

pawn Код:
native CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
native AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay)
Use these natives with a respawn_delay of -1


Respuesta: Vehicle respawn - Aguylera - 31.10.2010

If the car is destroyed respawn?


Re: Vehicle respawn - Nero_3D - 31.10.2010

Yes the cars will respawn if they get destroyed

Just add under OnVehicleSpawn DestroyVehicle(vehicleid);

So they wont respawn after destruction