01.11.2015, 20:34
So I'm working with checkpoints atm for a new roleplay job, and I thought to myself:
We seperate them checkpoints from each other using an array, right?
Now when playerid 22 logs, he uses box 22 in the array, and lets say he was in the middle of a checkpoint and /qed.
Another player now gets in the game, with ID 22. Wouldn't his checkpoint status already be something different from 0?
I was wondering why no tutorial included anything in OnPlayerDisconnect like:
Is it un-necessary? why?
We seperate them checkpoints from each other using an array, right?
Код:
new CheckpointStatus[MAX_PLAYERS];
Another player now gets in the game, with ID 22. Wouldn't his checkpoint status already be something different from 0?
I was wondering why no tutorial included anything in OnPlayerDisconnect like:
Код:
CheckpointStatus[playerid] = 0;