5 coordinates
#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


Messages In This Thread
5 coordinates - by GaudenasLT - 06.04.2011, 18:30
Re: 5 coordinates - by Elka_Blazer - 06.04.2011, 19:48
Re: 5 coordinates - by Alby Fire - 06.04.2011, 19:53
Re: 5 coordinates - by GaudenasLT - 07.04.2011, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)