SA-MP Forums Archive
Checkpoint problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Checkpoint problem (/showthread.php?tid=224981)



Checkpoint problem - Haji - 12.02.2011

I have: problem with checkpoints:
Код:
if(model == 461)
{
if(zData[playerid][LaikomA])
	{
ATestas[0] = SetPlayerRaceCheckpoint(playerid,2,2240.1462,-96.4087,26.1365,0.0,0.0,0.0,2);
return 1;
}

SetBar(playerid,"As nelaikau A kategorijos teisiu");
RemovePlayerFromVehicle(playerid);
DisablePlayerRaceCheckpoint(playerid);
return 1;
}



if(ATestas[0] == 1)
{
ATestas[1]= SetPlayerRaceCheckpoint(playerid,2,2226.3206,-67.3807,26.1370,0.0,0.0,0.0,2);
ATestas[0] = -1;

}
else if(ATestas[1] == 1)
{
ATestas[2]= SetPlayerRaceCheckpoint(playerid,2,2260.0313,-30.8516,26.1370,0.0,0.0,0.0,2);
ATestas[1] = -1;
}

else if(ATestas[2] == 1)
{
ATestas[3]= SetPlayerRaceCheckpoint(playerid,2,2296.7500,-6.1899,26.1369,0.0,0.0,0.0,2);
ATestas[2] = -1;
}
else if(ATestas[3] == 1)
{
ATestas[4]= SetPlayerRaceCheckpoint(playerid,2,2296.7791,58.2534,26.1370,0.0,0.0,0.0,2);
ATestas[3] = -1;
}

else if(ATestas[4] == 1)
{
ATestas[5]= SetPlayerRaceCheckpoint(playerid,2,2306.7085,89.5991,26.1347,0.0,0.0,0.0,2);
ATestas[4] = -1;
}

else if(ATestas[5] == 1)
{
ATestas[6]= SetPlayerRaceCheckpoint(playerid,2,2372.8118,88.7616,26.2020,0.0,0.0,0.0,2);
ATestas[5] = -1;
}

else if(ATestas[6] == 1)
{
ATestas[7]= SetPlayerRaceCheckpoint(playerid,2,2391.2314,64.4437,26.1370,0.0,0.0,0.0,2);
ATestas[6] = -1;
}

else if(ATestas[7] == 1)
{
ATestas[8]= SetPlayerRaceCheckpoint(playerid,2,2391.6213,29.6496,26.1398,0.0,0.0,0.0,2);
ATestas[7] = -1;
}

else if(ATestas[8] == 1)
{
ATestas[9]= SetPlayerRaceCheckpoint(playerid,2,2391.6213,29.6496,26.1398,0.0,0.0,0.0,2);
ATestas[8] = -1;
}

else if(ATestas[9] == 1)
{
ATestas[10]= SetPlayerRaceCheckpoint(playerid,2,2391.5947,-13.8144,26.1346,0.0,0.0,0.0,2);
ATestas[9] = -1;
}

else if(ATestas[10] == 1)
{
ATestas[11]= SetPlayerRaceCheckpoint(playerid,2,2375.8315,-26.2221,26.1378,0.0,0.0,0.0,2);
ATestas[10] = -1;
}

else if(ATestas[11] == 1)
{
ATestas[12]= SetPlayerRaceCheckpoint(playerid,2,2340.6296,-44.3038,26.1357,0.0,0.0,0.0,2);
ATestas[11] = -1;
}

else if(ATestas[12] == 1)
{
ATestas[13]= SetPlayerRaceCheckpoint(playerid,2,2328.4172,-96.2844,26.1365,0.0,0.0,0.0,2);
ATestas[12] = -1;
}

else if(ATestas[13] == 1)
{
ATestas[14]= SetPlayerRaceCheckpoint(playerid,2,2271.2273,-96.2477,26.1362,0.0,0.0,0.0,2);
ATestas[13] = -1;
}

else if(ATestas[14] == 1)
{
ATestas[15]= SetPlayerRaceCheckpoint(playerid,2,2250.4451,-88.2170,26.2887,0.0,0.0,0.0,2);
ATestas[14] = -1;
}


else if(ATestas[15] == 1)
{
DisablePlayerRaceCheckpoint(playerid);
SendClientMessage(playerid,WHITE, "Iрsilaikлte A kategorijos teises!");
zData[playerid][ATeises]=true;
zData[playerid][LaikomA]=false;
}
When you're entering to the first checkpoint with vehicle nothing happens please help.


AW: Checkpoint problem - MuLtiVaN - 12.02.2011

try to use SetPlayerCheckPoint, with Checkpoint ids....


Re: Checkpoint problem - Haji - 13.02.2011

fixed.