5 coordinates
#1

Hi, i have problem, i dont know how to create, that check or player is in point or not of 5 coordinates.

Sorry, my bad english
Reply
#2

if(IsPlayerInRangeOfPoint(playerid,RANGE,X,Y,Z))
Reply
#3

pawn Код:
stock IsPlayerInMyRange(playerid)
{
  if(IsPlayerInRangeOfPoint(playerid, RANGE, X, Y, Z)) {
      return true;
  }
  if(IsPlayerInRangeOfPoint(playerid, RANGE, X, Y, Z)) {
      return true;
  }
  if(IsPlayerInRangeOfPoint(playerid, RANGE, X, Y, Z)) {
      return true;
  }
  if(IsPlayerInRangeOfPoint(playerid, RANGE, X, Y, Z)) {
      return true;
  }
  if(IsPlayerInRangeOfPoint(playerid, RANGE, X, Y, Z)) {
      return true;
  }
  return false;
}
Change RANGE, X, Y and Z with your coordinates.
Use it like this
pawn Код:
if(IsPlayerInMyRange(playerid)) {
    //Functions
}
Reply
#4

Thanks, for you ;]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)