Detecting if palyer is in range of multiple objects
#7

the problem is that you're returning 1 no matter what, so it checks the first object in the array and then doesn't check any others

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 5, ox, oy, oz))
            {
                SendClientMessage(playerid, -1, "You are close to the object.");
                return 1;//stops script here, doesn't check any other objects
            }
            else
            {
                SendClientMessage(playerid, -1, "You are to far from the object.");
                return 1;//stops script here, doesn't check any other objects
            }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)