26.12.2011, 15:06
I mean you put the code in but not the dynamic object
So keep this:
}
public OnPlayerConnect(playerid)
{
SetTimerEx( "AGCheck", 750, true, "i", playerid );
return 1;
}
forward AGCheck(playerid);
public AGCheck(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,8.0,2184.899902 3438, -1763.1999511719, 15.199999809265))
{
MoveDynamicObject(AutoGate,2196.1999511719, -1763.9000244141, 15.199999809265,2.00);
}
else
{
MoveDynamicObject(AutoGate,2184.8999023438, -1763.1999511719, 15.199999809265,2.00);
}
return 1;
}
but remove the same object in the code above that
So keep this:
}
public OnPlayerConnect(playerid)
{
SetTimerEx( "AGCheck", 750, true, "i", playerid );
return 1;
}
forward AGCheck(playerid);
public AGCheck(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,8.0,2184.899902 3438, -1763.1999511719, 15.199999809265))
{
MoveDynamicObject(AutoGate,2196.1999511719, -1763.9000244141, 15.199999809265,2.00);
}
else
{
MoveDynamicObject(AutoGate,2184.8999023438, -1763.1999511719, 15.199999809265,2.00);
}
return 1;
}
but remove the same object in the code above that