24.07.2009, 23:05
hmm i dunno if theres an easier idea but mine is pretty advanced
pawn Code:
//Ontopofscript
new checkpoint;
//sumwhere
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(checkpoint == 0)
{
DisablePlayerCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,urnext checkpoint blah);
checkpoint = 1;
}
else
if(ckeckpoint == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,urnext checkpoint blah);
checkpoint = 2;
}
else
if(checkpoint == 2)
{
DisablePlayerCheckpoint(playerid);
endrace;//you would need to make that function first
checkpoint = 0;
}
return 1;
}