Weird errors problem..
#5

Paste this function somewhere in your script (preferably at the bottom):

pawn Код:
stock PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
{
  new Float:oldpos[3], Float:temppos[3];
  GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
  temppos[0] = (oldpos[0] -X);
  temppos[1] = (oldpos[1] -Y);
  temppos[2] = (oldpos[2] -Z);
  if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
  {
    return true;
  }
  return false;
}
Reply


Messages In This Thread
Weird errors problem.. - by Devine - 01.07.2009, 21:48
Re: Weird errors problem.. - by refshal - 01.07.2009, 21:49
Re: Weird errors problem.. - by Devine - 01.07.2009, 21:50
Re: Weird errors problem.. - by refshal - 01.07.2009, 21:51
Re: Weird errors problem.. - by Vince - 01.07.2009, 21:52
Re: Weird errors problem.. - by Devine - 01.07.2009, 21:58
Re: Weird errors problem.. - by iLinx - 01.07.2009, 22:00
Re: Weird errors problem.. - by Devine - 01.07.2009, 22:05
Re: Weird errors problem.. - by Devine - 01.07.2009, 22:10
Re: Weird errors problem.. - by refshal - 02.07.2009, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)