I need help with Robing system :P
#1

Hi guyz, my problem is when i goto Zero's Shop it doesn't Set my checkpoint! i dont know why

here is the code

pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    if(newinteriorid == 6) {
        if(IsPlayerInRangeOfPoint(playerid,50.0,-2239.7114,129.9761,1035.4141)) {
            SetPlayerCheckpoint(playerid, -2219.3125,135.7488,1035.6328,3);
            }else {
           DisablePlayerCheckpoint(playerid);
        }
    }
    return 1;
}

any help plz ???
Reply
#2

The distance of the check point is not within the range of IsPlayerInRangeOfPoint.
Try to make the distance in IsPlayerInRangeOfPoint further, should fix it, btw make sure the x y z are right.
Reply
#3

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
The distance of the check point is not within the range of IsPlayerInRangeOfPoint.
Try to make the distance in IsPlayerInRangeOfPoint further, should fix it, btw make sure the x y z are right.
I use the IsPlayerInRangeOfPoint's X,Y,Z near door of shop when we spawn in Zero Shop so it should SetCheckpoint Me :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)