SA-MP Forums Archive
Car 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)
+--- Thread: Car respawn (/showthread.php?tid=413427)



Car respawn - edzis84 - 05.02.2013

Hello, i have made simple dmv with checkpoints and i want to car respawns when entering last checkpoint.

How can i make that respawns only that car wich is used not all of cars?

Код:
DMVCar[0] = CreateVehicle(579,2052.8206,-1903.9745,13.3249,359.6511-180,6,1,300); 
	DMV[1] = CreateVehicle(579,2056.1641,-1903.9946,13.3470,359.6512-180,6,1,300); 
	DMV[2] = CreateVehicle(579,2059.3220,-1904.0138,13.3470,359.6512-180,6,1,300); 
	DMV[3] = CreateVehicle(579,2062.5098,-1904.0331,13.3470,359.6512-180,6,1,300); 
	DMV[4] = CreateVehicle(579,2065.6597,-1904.0526,13.3470,359.6512-180,6,1,300);



Re : Car respawn - lelemaster - 05.02.2013

In your OnPlayerEnterCheckPoint or OnPlayerEnterEnterRaceCheckPoint, you will simply add on the last checkpoint

SetVehicleToRespawn(GetPlayerVehicleID(playerid));