11.10.2014, 17:48
It doesn't work like that. You need to set one checkpoint at the time.
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,10,Event1[0][0],Event1[0][1],Event1[0][2]))
SetPlayerRaceCheckpoint(playerid,0,Event1[0][3],Event1[0][4],Event1[0][5],Event1[1][0],Event1[1][1],Event1[1][2],6);
else if(IsPlayerInRangeOfPoint(playerid,10,Event1[0][3],Event1[0][4],Event1[0][5]))
SetPlayerRaceCheckpoint(playerid,0,Event1[1][0],Event1[1][1],Event1[1][2],Event1[1][3],Event1[1][4],Event1[1][5],6);
else if(IsPlayerInRangeOfPoint(playerid,10,Event1[1][0],Event1[1][1],Event1[1][2]))
SetPlayerRaceCheckpoint(playerid,0,Event1[1][3],Event1[1][4],Event1[1][5],Event1[2][0],Event1[2][1],Event1[2][2],6);
...
return 1;
}