Checkpoint Help
#1

hi, how can i do when someone enter into a checkpoint appear next one spawn

sorry for my bad english
Reply
#2

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^^
Reply
#3

can you give me an example with more checkpoints ?
Reply
#4

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;
}
Reply
#5

thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)