error 004: function "PlayerToPoint" is not implemented
#4

Copy this at bottom of your script
pawn Code:
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
error 004: function "PlayerToPoint" is not implemented - by addmion - 28.11.2009, 13:51
Re: error 004: function "PlayerToPoint" is not implemented - by Remi-X - 28.11.2009, 13:54
Re: error 004: function "PlayerToPoint" is not implemented - by Correlli - 28.11.2009, 13:57
Re: error 004: function "PlayerToPoint" is not implemented - by Luka P. - 28.11.2009, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)