Ayuda IsPlayerInRangeOfPoint
#5

si mrdeath esta bien, aun q podes ponerla asi y es mas corto el codigo:
pawn Код:
stock IsPlayerInArea(playerid, Float:xmin, Float:xmax, Float:ymin, Float:ymax)
{
  new Float:X, Float:Y, Float:Z;
  GetPlayerPos(playerid, X, Y, Z);

  if(X >= xmin && X <= xmax && Y >= ymin && Y <= ymax) return 1;
  return 0;
}
y tmb estoy de acuerdo en que es lo mas simple, aun que posiblemente a algunos se les complique para sacar las coordenadas y ver cual es X y cual es Y en el momento de guardar la posicion.
Reply


Messages In This Thread
Ayuda IsPlayerInRangeOfPoint - by Master[Pro] - 08.06.2010, 04:25
Re: Ayuda IsPlayerInRangeOfPoint - by leaNN! - 08.06.2010, 16:30
Re: Ayuda IsPlayerInRangeOfPoint - by CristianTdj - 08.06.2010, 21:18
Re: Ayuda IsPlayerInRangeOfPoint - by MrDeath537 - 08.06.2010, 21:52
Re: Ayuda IsPlayerInRangeOfPoint - by TheChaoz - 08.06.2010, 22:00
Re: Ayuda IsPlayerInRangeOfPoint - by Master[Pro] - 09.06.2010, 01:02

Forum Jump:


Users browsing this thread: 1 Guest(s)