Automatic gate problem
#1

On top i added
pawn Код:
new AutoGate;
ongamemodeinit
pawn Код:
AutoGate = CreateDynamicObject(980,1285.20581055,-2056.52587891,60.50704956,0.00000000,0.00000000,87.75000000); //object(airportgate) (1)
OnPlayerConnect
pawn Код:
SetTimerEx( "AGCheck", 750, true, "i", playerid );
And the forward and public
pawn Код:
forward AGCheck(playerid);
public AGCheck(playerid)
{
    if(PlayerData[playerid][AdminLevel] > 3)
    {
        if(IsPlayerInRangeOfPoint(playerid,8.0,1285.20581055,-2056.52587891,60.50704956))
        {
            MoveObject(AutoGate,1285.6149902344,-2045.03515625,60.507049560547,2.00);
        }
        else
        {
            MoveObject(AutoGate,1285.20581055,-2056.52587891,60.50704956,2.00);
        }
    }
    return 1;
}
The Problem is when i go near the object the gate wont even move...
Reply


Messages In This Thread
Automatic gate problem - by Tanush123 - 11.08.2011, 16:37
Re: Automatic gate problem - by MadeMan - 11.08.2011, 16:41
Re: Automatic gate problem - by Darnell - 11.08.2011, 16:44
Re: Automatic gate problem - by Tanush123 - 11.08.2011, 17:14

Forum Jump:


Users browsing this thread: 4 Guest(s)