Automatic Gate Not Working. Compiles.
#2

Maybe:

pawn Код:
public CheckGate()
{
  new base_status;
  for(new i;i<MAX_PLAYERS;i++)
  {
    if(!IsPlayerConnected(i)) continue;
    if(IsPlayerInRangeOfPoint(i,15.0,-1534.5819091797, 482.19046020508, 6.2807078361511)) base_status = 1;
  }
  if(base_status==1) MoveObject(base,-1526.4539794922, 481.65655517578, 6.2885203361511,5.0);
  else MoveObject(base, -1534.5819091797, 482.19046020508, 6.2807078361511,5.0);
}
Untested.

Btw. I had the same problem that the electric gate was not spawned. Just try to place another one, on another place.
Reply


Messages In This Thread
Automatic Gate Not Working. Compiles. - by cozza123456 - 27.02.2010, 15:42
Re: Automatic Gate Not Working. Compiles. - by Jeffry - 27.02.2010, 15:57
Re: Automatic Gate Not Working. Compiles. - by cozza123456 - 27.02.2010, 16:09
Re: Automatic Gate Not Working. Compiles. - by `Robo - 27.02.2010, 17:16
Re: Automatic Gate Not Working. Compiles. - by cozza123456 - 28.02.2010, 10:40
Re: Automatic Gate Not Working. Compiles. - by aircombat - 28.02.2010, 10:44

Forum Jump:


Users browsing this thread: 1 Guest(s)