18.05.2012, 11:39
Better add the
At a TimerEx instead of a global timer
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 30.0, 1582.05, -1396.40, 13.01))
{
MoveObject(FBIgate3, 1581.88, -1390.51, 14.65, 5, 0.0, 0.0, 137.96);
}
else
{
MoveObject(FBIgate3, 1582.39, -1396.11, 14.65, 5, 0.00, 0.00, -132.18);
}
if(IsPlayerInRangeOfPoint(playerid, 30.0, 1507.85, -1312.98, 13.74))
{
MoveObject(FBIgate2, 1503.47, -1316.99, 14.56, 5, 0.0, 0.0, 264.33);
}
else
{
MoveObject(FBIgate2, 1507.83, -1312.95, 14.56, 5, 0.00, 0.00, 359.25);
}
if(IsPlayerInRangeOfPoint(playerid, 30.0, 1594.55, -1313.20, 16.45))
{
MoveObject(FBIgate1, 1588.82, -1312.25, 18.07, 5, 0.0, 0.0, 206.24);
}
else
{
MoveObject(FBIgate1, 1594.76, -1313.24, 18.07, 5, 0.00, 0.00, 310.74);
}
return 1;