[HELP]Auto Gate?
#5

Check the wiki -> Automatic_Gates

BUT the last code has a mistake in it, take that one instead

pawn Код:
forward CheckGate();
public CheckGate()
{
    new i;
    for( ; i != MAX_PLAYERS; i++)
        if(IsPlayerInRangeOfPoint(i, 10.0, closed_X, closed_Y, closed_Z))
            break;
    if(i != MAX_PLAYERS) MoveObject(mygate, open_X, open_Y, open_Z, Moving_Speed);
    else MoveObject(mygate, closed_X, closed_Y, closed_Z, Moving_Speed);
}
Reply


Messages In This Thread
[HELP]Auto Gate? - by Larsey123IsMe - 16.11.2010, 22:28
Re: [HELP]Auto Gate? - by Nero_3D - 16.11.2010, 23:54
Re: [HELP]Auto Gate? - by Rafa - 17.11.2010, 08:39
Re: [HELP]Auto Gate? - by Larsey123IsMe - 17.11.2010, 12:40
Re: [HELP]Auto Gate? - by Nero_3D - 17.11.2010, 13:29
Re: [HELP]Auto Gate? - by yvoms - 17.11.2010, 13:32
Re: [HELP]Auto Gate? - by Larsey123IsMe - 17.11.2010, 13:59
Re: [HELP]Auto Gate? - by yvoms - 17.11.2010, 14:09
Re: [HELP]Auto Gate? - by Larsey123IsMe - 17.11.2010, 15:07
Re: [HELP]Auto Gate? - by yvoms - 18.12.2010, 20:01

Forum Jump:


Users browsing this thread: 1 Guest(s)