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

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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.
I see!

However, the checkpoints always change the locations as I make it on a random house, how would I update this?

Thanks again.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)