16.12.2013, 00:09
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
}