[unawnsered]Checkpoint Help
#1

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

Search for Checkpoint streamer in Filterscripts.
Reply
#3

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

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

sorry for DP

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

anyone?
Reply
#6

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

Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)