SA-MP Forums Archive
[unawnsered]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: [unawnsered]Checkpoint Help (/showthread.php?tid=84715)



[unawnsered]Checkpoint Help - burgershot - 02.07.2009

Heys!

Well I have a small problem. I have (atm) 2 checkpoints on my server. I know that I can't have both active at the same time; but that is not what I want.

If I define the two checkpoints (i.e. cp1 = SetPlayerCheckpoints(blah,blah,blah)) can I actually do

pawn Код:
if (IsPlayerInCheckpoint(playerid)==cp1)
   {
     //do something here
   }

if (IsPlayerInCheckpoint(playerid)==cp2)
   {
     //do something DIFFERENT here
   }
IMPORTANT: I have both checkpoints activated by PlayerToPoint!

If I can't do it like this, how can I have a different effect for each checkpoint?

Thanks In Advance!
************
EDIT: I read this before but when I did it the same thing happened in cp2 as cp1

link: http://forum.sa-mp.com/index.php?top...8975#msg618975


Re: Checkpoint Help - arnutisz - 02.07.2009

Search for Checkpoint streamer in Filterscripts.


Re: Checkpoint Help - 6tynine - 02.07.2009

Use Double-o-stream. If you need help using that just pm me


Re: Checkpoint Help - burgershot - 02.07.2009

But I only have one checkpoint at a time

EDIT: http://forum.sa-mp.com/index.php?top...8975#msg618975 <-- I read this before and tried it out but for me the saem thing happens in cp2 that happened in cp1


Re: [unawnsered]Checkpoint Help - burgershot - 02.07.2009

sorry for DP

added a link that shows exactly what I am doing possible but it doesnt work for me...

anyone?


Re: [unawnsered]Checkpoint Help - Yuryfury - 02.07.2009

I am having the same problem. I am using a streamer for now.




Re: [unawnsered]Checkpoint Help - ledzep - 03.07.2009

Quote:
Originally Posted by burgershot
pawn Код:
if (IsPlayerInCheckpoint(playerid)==cp1)
   {
     //do something here
   }

if (IsPlayerInCheckpoint(playerid)==cp2)
   {
     //do something DIFFERENT here
   }
https://sampwiki.blast.hk/wiki/IsPlayerInCheckpoint

That will not work because IsPlayerInCheckPoint only returns true or false.

Use:
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint