31.10.2009, 20:20
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);
}
}
}
}