Posts: 1,018
Threads: 129
Joined: Apr 2011
Reputation:
0
Just as he enters the checkpoint,destroy it,and that's it(DESTROY only the last one and togheter with that the rest of the checkpoints).Get his name and congratulate him :P.If anyone did not reach the last checkpoint or not even the pre-last(as the other checkpoints have been destroyed togheter with the last one when the winner entered it,he cannot continue),show him a gametext you have lost the race.And also to all who did not enter the last checkpoint.That would be done using a for loop,but you have to exclude the winner's playerid.All this piece of code should be stored on your checkpoints streamer OnPlayerEnterDynamicCP(at least that's for Incognito's streamer).And that's it.
Posts: 2,268
Threads: 89
Joined: Apr 2009
Reputation:
0
Make a variable for entered checkpoints, and when a player enters a checkpoint, increase the variable by one.
Then, you can check if the variable's count is equal to the total race checkpoints and if it is, obviously that means the player has entered the last checkpoint.
To check the positions, make another variable and when a player finishes, increase it by one.