IsObjectInRangeOfPoint[SOLVED]
#3

Код:
stock ObjectToPoint(Float:radi, objectid, Float:x, Float:y, Float:z)
{
  new Float:oldposx, Float:oldposy, Float:oldposz;
  new Float:tempposx, Float:tempposy, Float:tempposz;
  GetObjectPos(playerid, oldposx, oldposy, oldposz);
  tempposx = (oldposx -x);
  tempposy = (oldposy -y);
  tempposz = (oldposz -z);
  if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  {
   return 1;
  }
  return 0;
}
Reply


Messages In This Thread
IsObjectInRangeOfPoint[SOLVED] - by Retardedwolf - 21.05.2010, 09:31
Re: IsObjectInRangeOfPoint - by [HiC]TheKiller - 21.05.2010, 10:38
Re: IsObjectInRangeOfPoint - by misko28 - 21.05.2010, 11:06
Re: IsObjectInRangeOfPoint - by Retardedwolf - 21.05.2010, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)