Gates aren't moving.
#9

Quote:
Originally Posted by yugokoral
What about this code i had:

Код:
forward CheckGate();
public CheckGate()
{
  for(new i = 0; i < GetMaxPlayers(); i++)
  {
    if(!IsPlayerConnected(i)) continue;
    if(PlayerToPoint(10.0, i, 213.8831,1875.3693,13.1470))
    {
      MoveObject(a51_desna,207.838668,1875.358276,13.885452,1.0);
      MoveObject(a51_leva,219.970260,1875.358276,13.885452,1.0);
      return 1;
    }
  }
  MoveObject(a51_desna,211.854766,1875.358276,13.885452,1.0);
  MoveObject(a51_leva,215.952407,1875.358276,13.885452,1.0);
  return 1;
}
Thank you for help!
pawn Код:
forward CheckGate();
public CheckGate()
{
  for(new i = 0; i < GetMaxPlayers(); i++)
  {
    if(!IsPlayerConnected(i)) continue;
    if(PlayerToPoint(10.0, i, 213.8831,1875.3693,13.1470))
    {
      MoveObject(a51_desna,207.838668,1875.358276,13.885452,1.0);
      MoveObject(a51_leva,219.970260,1875.358276,13.885452,1.0);
    }
    else
    {
    MoveObject(a51_desna,211.854766,1875.358276,13.885452,1.0);
    MoveObject(a51_leva,215.952407,1875.358276,13.885452,1.0);
    }
  }
  return 1;
}
Reply


Messages In This Thread
Gates aren't moving. - by [mad]MLK - 31.10.2009, 19:38
Re: Gates aren't moving. - by member - 31.10.2009, 20:20
Re: Gates aren't moving. - by ev0lution - 31.10.2009, 21:11
Re: Gates aren't moving. - by [mad]MLK - 31.10.2009, 21:25
Re: Gates aren't moving. - by Joe Staff - 01.11.2009, 00:33
Re: Gates aren't moving. - by yugokoral - 01.11.2009, 08:23
Re: Gates aren't moving. - by Joe Staff - 01.11.2009, 19:48
Re: Gates aren't moving. - by yugokoral - 01.11.2009, 20:12
Re: Gates aren't moving. - by Synkro93 - 01.11.2009, 20:18
Re: Gates aren't moving. - by yugokoral - 01.11.2009, 20:48

Forum Jump:


Users browsing this thread: 3 Guest(s)