15.06.2016, 09:00
Code:
public OnPlayerEnterCheckpoint (playerid ) { GivePlayerMoney (playerid, 10000 ); SetTimerEx("NextCheckpoint1", 30000, false, "i", playerid); return 1 ; } forward NextCheckpoint1(playerid); public NextCheckpoint1(playerid) { DisablePlayerCheckpoint( playerid ) ; SetTimerEx("NextCheckpoint2", 30000, false, "i", playerid); // Create checkpoint here, see the example below return 1 ; } // ... here proceed to checkpoint 3, 4, 5, 6 etc.
Make a timer to remove the old checkpoint and set a new one, and then again and again.
Also, its good to define each checkpoint you set for the player:
Code:
new checkpoint[6]; // 6 is the number of checkpoints you're going to use, only example checkpoint[0] = Create checkpoint here checkpoint[1] = Create checkpoint here //Then you'll destroy each checkpoint separately by using its definition.
https://sampwiki.blast.hk/wiki/IsPlayerInCheckpoint