Code: Select all
<script><!--
main() {
while (True) {
yield;
if (!PageIsVisible || InputPlayer == Null) continue;
foreach (Player in Players) {
declare PrevCheckpointCount for Player = -1;
if (PrevCheckpointCount != Player.CurRace.Checkpoints.count) {
PrevCheckpointCount = Player.CurRace.Checkpoints.count;
// A player crossed a checkpoint, do something now !
}
}
}
}
--></script>