public checkpointUpdate()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) {
for(new j=0; j < MAX_POINTS; j++) {
if(isPlayerInArea(i, checkCoords[j])) {
if(playerCheckpoint
!=j) {
DisablePlayerCheckpoint(i);
SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],2);
playerCheckpoint = j;
}
} else {
if(playerCheckpoint==j) {
DisablePlayerCheckpoint(i);
playerCheckpoint = 999;
}
}
}
}
}
}
new Float:checkCoords[MAX_POINTS][4] = {
{-2689.9849,1389.1598,-2631.0308,1431.7599}, //JIZZYS
{2208.6492,2214.2271,1287.3967,1291.3939} //PIRAMID
};
new Float:checkpoints[MAX_POINTS][3] = {
{-22.2549,-55.6575,1003.5469},
{2211.4485,1288.9395,10.8203} //PIRAMID
};