25.07.2014, 03:52
1) set a variable for the last vehicle ID.
2) set the checkpoint in map-icon and set a variable for that checkpoint.
3) under OnPlayerEnterCheckpoint or whatever add a new variable that sets to one that he reached that point.
4) under OnPlayerEnterVehicle add a condition to check the variable that we set under OnPlayerEnterCheckpoint and if it's not zero the set it to zero and destroy the vehicle.
5) add a message so the player would know (optional)
I hope I helped any feedback would be appreciated!
2) set the checkpoint in map-icon and set a variable for that checkpoint.
3) under OnPlayerEnterCheckpoint or whatever add a new variable that sets to one that he reached that point.
4) under OnPlayerEnterVehicle add a condition to check the variable that we set under OnPlayerEnterCheckpoint and if it's not zero the set it to zero and destroy the vehicle.
5) add a message so the player would know (optional)
I hope I helped any feedback would be appreciated!