/parole problem
#8

Use this instead of GetPlayerPos:
pawn Код:
else if (!PlayerToPoint(5, id,264.3700,77.5700,1001.0391)) return SendClientMessage(playerid,donkerrood,"Player is not in jail");
Somewhere outside your callbacks:
pawn Код:
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
/parole problem - by Pawno_Master - 21.07.2009, 08:49
Re: /parole problem - by Sdhoirm - 21.07.2009, 09:21
Re: /parole problem - by yezizhu - 21.07.2009, 09:25
Re: /parole problem - by Klutty - 21.07.2009, 09:33
Re: /parole problem - by Pawno_Master - 21.07.2009, 10:12
Re: /parole problem - by woot - 21.07.2009, 11:03
Re: /parole problem - by Pawno_Master - 21.07.2009, 11:17
Re: /parole problem - by woot - 21.07.2009, 11:20

Forum Jump:


Users browsing this thread: 6 Guest(s)