19.08.2009, 15:55
Hello, I was wondering how I could bypass the one cp limit in sa-mp so I tired this:
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?
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);
}
For some reason none of the checkpoints show up. Will this simply not work or am I doing something wrong?