Gates
#1

i have done a script with gates but only the player with highest id can open them
pawn Код:
public AutoTor()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
        /*  if(IsPlayerInRangeOfPoint( i, 15,345.27, 1797.73, 19.45))
            {
                MoveObject(ArmyGate3l,339.28, 1793.84, 18.31, 3, 0.00, 0.00, 33.02);
                MoveObject(ArmyGate3r,351.15, 1801.99, 18.31, 3, 0.00, 0.00, 35.95);
            }
            else
            {
                MoveObject(ArmyGate3l,342.90, 1796.20, 18.31, 3, 0.00, 0.00, 33.02);
                MoveObject(ArmyGate3r,347.55, 1799.39, 18.31, 3, 0.00, 0.00, 35.95);
            }*/

            if(IsPlayerInRangeOfPoint( i, 15, 286.03, 1820.46, 19.94))
            {
                MoveObject(ArmyGate1,286.03, 1833.72, 19.94, 3, 0.00, 0.00, 90.00);
            }
            else
            {
                MoveObject(ArmyGate1,286.03, 1820.46, 19.94, 3, 0.00, 0.00, 90.00);
            }
            if(IsPlayerInRangeOfPoint( i, 15, 134.92, 1941.57, 21.64))
            {
                MoveObject(ArmyGate2, 120.84, 1941.57, 21.62, 3, 0.00, 0.00, 0.00);
            }
            else
            {
                MoveObject(ArmyGate2,134.92, 1941.57, 21.64, 3, 0.00, 0.00, 0.00);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Gates - by dalkgamler - 25.07.2012, 12:59
AW: Gates - by Nero_3D - 25.07.2012, 14:32
AW: Gates - by dalkgamler - 25.07.2012, 16:01
AW: Gates - by dalkgamler - 25.07.2012, 16:07
AW: Gates - by Nero_3D - 25.07.2012, 17:59
AW: Gates - by dalkgamler - 26.07.2012, 06:53
AW: Gates - by dalkgamler - 27.07.2012, 06:41
Re: Gates - by dowster - 27.07.2012, 06:51
AW: Gates - by dalkgamler - 27.07.2012, 06:53
AW: Gates - by dalkgamler - 27.07.2012, 07:24

Forum Jump:


Users browsing this thread: 1 Guest(s)