18.07.2011, 18:35
i don't really get how SetPlayerRaceCheckpoint works
i got this
well the proble is that i get the first one and then it goes straight to the last one
i got this
pawn Код:
//my frist checkpoint
SetPlayerRaceCheckpoint(playerid,3,1775.46765137,-2593.12890625,12.81182575,0,0,0,10.0);
PilotCheckpoint[playerid]=1;
//then when it gets picked up
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(PilotCheckpoint[playerid]==1)
{
SetPlayerRaceCheckpoint(playerid,3,1474.51684570,-2592.75708008,12.81182575,0,0,0,10.0);
PilotCheckpoint[playerid]=2;
}
if(PilotCheckpoint[playerid]==2)
{
SetPlayerRaceCheckpoint(playerid,3,1341.51184082,-2620.22851562,61.48181915,0,0,0,10.0);
PilotCheckpoint[playerid]=3;
}
//ETC....