Checkpoint & GetDistanceToPoint
#1

Hello, I was wondering how I could bypass the one cp limit in sa-mp so I tired this:

pawn Код:
if(GetDistanceToPoint(i,X,Y,Z)<=10)
        {
          SetPlayerCheckpoint(i,X,Y,Z,2);
        }
        else if(GetDistanceToPoint(i,X2,Y2,Z2)<=10)
        {
          SetPlayerCheckpoint(i,X2,Y2,Z2,2);
        }
        else if(GetDistanceToPoint(i,X3,Y3,Z3)<=10)
        {
          SetPlayerCheckpoint(i,X3,Y3,Z3);
        }
and under OnPlayerEnterCheckpoint I would check the distance from each of the coords (X,Y,Z), (X2,Y2,Z2) and (X3,Y3,Z3) and for whichever one is true, do a separate thing.

For some reason none of the checkpoints show up. Will this simply not work or am I doing something wrong?
Reply


Messages In This Thread
Checkpoint & GetDistanceToPoint - by burgershot - 19.08.2009, 15:55
Re: Checkpoint & GetDistanceToPoint - by burgershot - 19.08.2009, 16:52
Re: Checkpoint & GetDistanceToPoint - by member - 19.08.2009, 16:56
Re: Checkpoint & GetDistanceToPoint - by Yuryfury - 19.08.2009, 18:07

Forum Jump:


Users browsing this thread: 1 Guest(s)