Checkpoints
#1

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.
Reply
#2

You can only show one checkpoint at a time. Use a streamer if you want more.
Reply
#3

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.
Reply
#4

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

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.
Reply
#6

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?
Reply
#7

This is resolved now, thanks for your help pal.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)