Gate opening for more ppl
#4

pawn Код:
public GateCheck()
{
    new InRange;
    for(new i=0; i<MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i)) {
            if(IsPlayerInRangeOfPoint(i, 10.0, 1792.6700439453, -1284.7282714844, 15.406204223633))InRange = 1; //Range Of Closed One
        }
    }
    if(InRange)MoveObject(gate, 1792.6700439453, -1284.7282714844, 8.7312259674072, 3.0); //Opened
    else MoveObject(gate, 1792.6700439453, -1284.7282714844, 15.406204223633, 3.0); //Closed
}
Reply


Messages In This Thread
Gate opening for more ppl - by luckie12 - 08.01.2011, 19:43
Re: Gate opening for more ppl - by Infamous - 08.01.2011, 20:04
Re: Gate opening for more ppl - by luckie12 - 08.01.2011, 21:09
Re: Gate opening for more ppl - by Infamous - 08.01.2011, 21:50

Forum Jump:


Users browsing this thread: 2 Guest(s)