24.07.2009, 19:32
hi, how can i do when someone enter into a checkpoint appear next one spawn
sorry for my bad english
sorry for my bad english
public OnPlayerEnterRaceCheckpoint(playerid)
{
SetPlayerRaceCheckpoint(playerid,urnext checkpoint blah);
return 1;
}
//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;
}