MoveObject Automatically
#5

pawn Code:
if(IsPlayerInRangeOfPoint(playerid, Float:Range, Float:X, Float:Y, Float:Z)
{
    for(new i, Max = GetMaxPlayers(); i < Max; i++)
    {
        MoveObject(i, YourVariable, X, Y, Z); // Open.
        }else{
        MoveObject(i, YourVariable, X, Y, Z); // Close.
    }
}
I think it should working.
Reply


Messages In This Thread
MoveObject Automatically - by Gemini - 10.03.2011, 10:33
Re: MoveObject Automatically - by Riddick94 - 10.03.2011, 10:37
Re: MoveObject Automatically - by Gemini - 10.03.2011, 10:43
Re: MoveObject Automatically - by Gemini - 10.03.2011, 10:45
Re: MoveObject Automatically - by Riddick94 - 10.03.2011, 10:48

Forum Jump:


Users browsing this thread: 3 Guest(s)