22.09.2014, 12:54
Than stop reusing the same coordinate, just asign each player an idividual position
If you got two array, one player array (players) and one with the positions (data) you only need to loop through them
Now you only need to limit the players who can join to the maximal position number
If you got two array, one player array (players) and one with the positions (data) you only need to loop through them
pawn Код:
for(new idx; idx < PLAYER_COUNT_WHO_JOINT; idx++) {
SetPlayerPos(player[idx], data[idx][0], data[idx][1], data[idx][2]);
SetPlayerFacingAngle(player[idx], data[idx][3]);
}