PlayerToPoint Errors on a new command
#3

Quote:
Originally Posted by bilakispa
Probably you don't have the PlayerToPoint function.

Copy it.
pawn Код:
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
  new Float:oldposx, Float:oldposy, Float:oldposz;
  new Float:tempposx, Float:tempposy, Float:tempposz;
  GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  tempposx = (oldposx -x);
  tempposy = (oldposy -y);
  tempposz = (oldposz -z);
  if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  {
    return 1;
  }
  return 0;
}
I have it.I am already using it on a lot of fuctions in the gamemode...
Reply


Messages In This Thread
PlayerToPoint Errors on a new command - by Souvlaki - 12.03.2010, 17:41
Re: PlayerToPoint Errors on a new command - by bilakispa - 12.03.2010, 17:47
Re: PlayerToPoint Errors on a new command - by Souvlaki - 12.03.2010, 17:50
Re: PlayerToPoint Errors on a new command - by bilakispa - 12.03.2010, 17:55
Re: PlayerToPoint Errors on a new command - by Souvlaki - 12.03.2010, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)