SA-MP Forums Archive
cars dont 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: cars dont respawn. (/showthread.php?tid=271629)



cars dont respawn. - slymatt - 25.07.2011

when i DestroyVehicle(); how do i make them respawn or do i not use Destroy vehicle because its for my DMV script and i need the car to despawn when they exit the vehicle and respawn back at the start.


Re: cars dont respawn. - Raimis_R - 25.07.2011

Use
pawn Код:
SetVehicleToRespawn(vehicleid);
Then you using DestroyVehicle(vehicleid); you need create new vehicle with CreateVehicle(..) etc.


Re: cars dont respawn. - slymatt - 25.07.2011

o i see so onplayerexitvehicle i just respawn it not destroy it =P.

EDIT:

RespawnVehicle(); isnt there?


Re: cars dont respawn. - Raimis_R - 25.07.2011

Quote:
Originally Posted by slymatt
Посмотреть сообщение
o i see so onplayerexitvehicle i just respawn it not destroy it =P.

EDIT:

RespawnVehicle(); isnt there?
Mm what you mean "isnt there"

Edit:

Ups sorry correct native:
pawn Код:
SetVehicleToRespawn(vehicleid);



Re: cars dont respawn. - slymatt - 25.07.2011

Thats the right one haha thanks a lot =) happy its working now haha