13.05.2009, 19:43 
	
	
	
		you can change any of coordinates, time delays, ids and speeds
	
	
	
	
Код:
stock movingObject, movingObjectState;
public OnGameModeInit()
{
	movingObject = CreateObject( 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 );
	SetTimerEx( "moveObject", 1000, 1, "d", movingObject );
}
forward moveObject ( objectid );
public moveObject ( objectid )
{
	if ( movingObjectState )
	{
		movingObjectState = 0;
		MoveObject( objectid, 5.0, 5.0, 0.0, 1.0 );
	}
	else
	{
		movingObjectState = 1;
		MoveObject( objectid, 0.0, 0.0, 0.0, 1.0 );
	}
}


