Checkpoints - 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)
+--- Thread: Checkpoints (
/showthread.php?tid=297818)
Checkpoints -
Infamous - 17.11.2011
Why can't checkpoints be used like this?
pawn Код:
Checkpoint1 = SetPlayerCheckpoint(
Checkpoint2 = SetPlayerCheckpoint(
Checkpoint3 = SetPlayerCheckpoint(
For some reason all checkpoints will be called rather than the one being checked at that time under OnPlayerEnterCheckpoint..
This is how they are being checked:
pawn Код:
if(Checkpoint1 && gTeam[playerid] == RED_TEAM)
Any ideas guys?
Edit: I would prefer not to use a streamer if I can help it btw.
Re: Checkpoints -
MP2 - 17.11.2011
You can only show one checkpoint at a time. Use a streamer if you want more.
Re: Checkpoints -
Infamous - 17.11.2011
I do only want to show one at a time, just in a specific order.
Edit: I have actually managed to get it working using a few variables and loops, wish there was a SetCheckpointForAll though.
Re: Checkpoints -
MP2 - 17.11.2011
What do you mean specific order? Take a look at this post I made earlier, it explains what I think you want to do:
http://forum.sa-mp.com/showthread.ph...49#post1523749
Re: Checkpoints -
Infamous - 18.11.2011
Yeah that's about right, I was aiming for when a player enters a checkpoint it sets a new one for everyone (repeat same process 4 times) With their being no id's I was forced to use variables and loops to set it for everyone. Seems a really messy way of doing it though.
Re: Checkpoints -
MP2 - 18.11.2011
There's no way to get around the loop, it's not really a significant problem. Do you need help with anything else related to this?
Re: Checkpoints -
Infamous - 18.11.2011
This is resolved now, thanks for your help pal.