Making a gate with /open command
#4

Don't forget these on else you got an error

Код:
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
Making a gate with /open command - by IceColdBaby0o - 24.07.2009, 20:51
Re: Making a gate with /open command - by RyDeR` - 24.07.2009, 20:54
Re: Making a gate with /open command - by MenaceX^ - 24.07.2009, 20:55
Re: Making a gate with /open command - by RyDeR` - 24.07.2009, 20:58
Re: Making a gate with /open command - by IceColdBaby0o - 24.07.2009, 23:20
Re: Making a gate with /open command - by Luciano - 25.07.2009, 00:38
Re: Making a gate with /open command - by IceColdBaby0o - 25.07.2009, 11:35

Forum Jump:


Users browsing this thread: 2 Guest(s)