Car respawn
#1

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);
Reply
#2

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

SetVehicleToRespawn(GetPlayerVehicleID(playerid));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)