Checkpoint Help - 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 Help (
/showthread.php?tid=88177)
Checkpoint Help -
Quead - 24.07.2009
hi, how can i do when someone enter into a checkpoint appear next one spawn
sorry for my bad english
Re: Checkpoint Help -
saiberfun - 24.07.2009
just do
pawn Code:
public OnPlayerEnterRaceCheckpoint(playerid)
{
SetPlayerRaceCheckpoint(playerid,urnext checkpoint blah);
return 1;
}
if u awnt more checkpoints i guess u need a variable for that^^
Re: Checkpoint Help -
Quead - 24.07.2009
can you give me an example with more checkpoints ?
Re: Checkpoint Help -
saiberfun - 24.07.2009
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;
}
Re: Checkpoint Help -
Quead - 25.07.2009
thank you