Automatic Gate Code Problems
#8

Delete the IsPlayerInRangeOfPoint function and change this

pawn Код:
public CheckEnteranceGateToMove(playerid)
{
    mygate_status = 0;
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(IsPlayerInRangeOfPoint(i,10.0, -2896.298096, 1235.049805, 8.874954)) mygate_status = 1;
    }
    if(mygate_status)MoveObject(enterance, -2896.298096, 1235.049805, 2.874954, 2.0);
    else MoveObject(enterance, -2896.298096, 1235.049805, 8.874954, 2.0);
}
Reply


Messages In This Thread
Automatic Gate Code Problems - by AK47317 - 05.11.2010, 04:58
Re: Automatic Gate Code Problems - by LarzI - 05.11.2010, 07:39
Re: Automatic Gate Code Problems - by AK47317 - 06.11.2010, 10:38
Re: Automatic Gate Code Problems - by LarzI - 06.11.2010, 10:46
Re: Automatic Gate Code Problems - by AK47317 - 06.11.2010, 10:48
Re: Automatic Gate Code Problems - by The_Moddler - 06.11.2010, 11:00
Re: Automatic Gate Code Problems - by AK47317 - 06.11.2010, 11:11
Re: Automatic Gate Code Problems - by MadeMan - 06.11.2010, 11:14

Forum Jump:


Users browsing this thread: 1 Guest(s)