Gates aren't moving.
#2

The problem was with IsPlayerConnected you had (!IsPlayerConnected) which checks if the player is diconnected.


pawn Код:
public GroveGates()
{
    for(new i; i< GetMaxPlayers();i++)
    {
        if(IsPlayerConnected(i) && DMZone[i] == 4)
        {
            if(IsPlayerInRangeOfPoint(i, 10.0, 2435.674561, -1656.416626, 13.420712))
            {
                MoveObject(ggate, 2435.637695, -1651.433228, 13.333119, 3.0);
            }
            else
            {
                MoveObject(ggate, 2435.674561, -1656.416626, 13.420712, 3.0);
            }
        }
    }
}
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: 1 Guest(s)