Checkpoints messing up, displaying to wrong people, randomly.
#11

Dynamic checkpoints are used if you want to display many of them at a time. If what you are trying to do is like missions that goes from one checkpoint to another, you may as well use SetPlayerCheckpoint but that would be more confusing as there would too much variables checking. Now, as you have it with dynamic checkpoints: create all checkpoints once (when the server starts) like:
pawn Код:
// global:
new PizzaCheck[2];

// in OnGameModeInit:
PizzaCheck[0] = CreateDynamicCP(..);
PizzaCheck[1] = CreateDynamicCP(..);

// When a player connects:
for(new a = 0; a < sizeof PizzaCheck; a++)
{
    TogglePlayerDynamicCP(playerid, PizzaCheck[a], 0);
}
Setting the third parameter 'toggle' to 1 will show the checkpoint to the player.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)